Try OpenEdge Now
Working with JSON
Using JSON with OpenEdge
:
JSON basics
:
Complex values
Complex values
JSON enables you to name objects and arrays and combine them into complex values. A
complex value
combines simple values to represent more complicated data. The following example shows an object made up of other objects and arrays:
{
"salesRep" : { "name" : "Dorothy Gale",
"age" : 38,
"region" : "Kansas, USA"
},
"tractorSales" : { "2009Quarterly" : [ 13, 27, 18, 9 ],
"2008Quarterly" : [ 11, 17, 32, 5 ],
"2007Quarterly" : [ 9, 25, 16, 10 ]
}
}
Note:
The previous JSON example has been formatted for easier reading.