UPDATED: Added eval
. Hadn’t noticed that it was in a string.
It seems to me that your biggest problem is that it is all wrapped in an array with a single element. You can do:
var element = eval(jsonData)[0];
The eval
is there to convert from string to a javascript object.
Then, to access anything (for example the dimensions
array), do the following:
var dimensions = element.dimensions;
2
solved get key value from array