10-02-2017 01:28 PM
Hi,
How do I append some hardcode json string into an exsting json document.
For example, my Oracle select Snapl returns below as output
[{“DEGREE_ID”:269,“DEGREE_NAME”:“1. Staatsexamen”},
{“DEGREE_ID”:270,“DEGREE_NAME”:“1. jur. Staatsexamen”},
{“DEGREE_ID”:273,“DEGREE_NAME”:“1. med. Staatsexamen”}]
as you can see each row returns as on doc.
How can I transforme it to
{
“apiVersion”: “1.0”,
“educationDegrees”: [{“DEGREE_ID”:269,“DEGREE_NAME”:“1. Staatsexamen”},
{“DEGREE_ID”:270,“DEGREE_NAME”:“1. jur. Staatsexamen”},
{“DEGREE_ID”:273,“DEGREE_NAME”:“1. med. Staatsexamen”}]
}
As you can see I just added some hardcode fields on top of my response.
Thanks
10-02-2017 02:02 PM
Please look at this post