I have a Web application which gets it data from a JSON string. The JSON is in the following format
{
"contacts": [{
"type": "contact",
"name": "John Doe",
"contact": 1,
"links": ["Spouse", "Friends","Jane Doe","Harry Smith"]
}]
}
Now this is a sample data. My actual DB is in Oracle. My question would be how do I construct this JSON from Oracle.
||operator. Just leave alone formatting JSON and concentrate on feeding data. If you post your data structure (the tables you want this data to generate from), and show us what have you already tried, we may tell you how to actually do it.