I have some JSON which I have in a object but I can seem to return the values a sample of the json is as follows.
{ \"rootLayout\":\"main\", \"layoutDescriptions
The object is an object, not an array, and it doesn't have a property called 0.
0
To get rootLayout:
rootLayout
obj.rootLayout
However, rootLayout is a string, not an object. It doesn't have an id. The first item in the layoutDescriptions array does.
id
layoutDescriptions
obj.layoutDescriptions[0].id