I have a json like this:
var json = {
"A": {
"A1": {
"A11": "A",
"A12": "B",
"A13": "C"
},
"A2": {
"A21": "A",
"A22": "B",
"A23": "C"
}
},
"B": {
"B1": {
"B11": "A",
"B12": "B",
"B13": "C"
},
"B2": {
"B21": "A",
"B22": "B",
"B23": "C"
}
}
}
I can access it using:
json.B.B13
But I want to loop through all objects. (A, B) how can I do this?
tought about using for(...) and: json[0].B13 but that doesn't work.
How can I do it?