I have an array as follows:
[
[{"Id":"5","Color":"White"}],
[{"Id":"57","Color":"Blue"}],
[{"Id":"9","Color":"Brown"}]
]
Each object is inside an array which is inside another array. I want to access one of the object's properties, let say Id of first object ("Id":"5"). How can I do that?
x, Then the required element can be fetched by,x[0][0]["Id"]outerArray[indexOfInnerArray][0].propertyNamearray[n], right? Then you already know how to access the mth element of the nth element; obviously that would bearray[n][m], right? Do you know how to access a field of an object? If not, then please study up on the basics of JavaScript objects. That would beobject.key, right? Then you already know how to access a field of the mth element of the nth element--justarray[n][m].key, right? So what is your problem again?