It is not an array, they are simple objects, so you cannot use a property length.
You need to use the operator for...in:
for(var x in map_data) {
if (map_data.hasOwnProperty(x))
for(var y in map_data[x]) {
if (map_data[x].hasOwnProperty(y)) {
}
}
}
hasOwnProperty , , , - (, JavaScript) Array.prototype Object.prototype, .
, .
"" :
[
[{"name":"aa"},{"name":"bb"}],
[{"name":"cc"},{"name":"dd"}]
]
, length .