One of my Kotlin methods receives a json string similar to the following one:
{
"12": {
"1": {
"a": "0",
"b": "100",
"c": "8",
"d": ""
},
"5": {
"a": "0",
"b": "100",
"c": "8",
"d": ""
}
}
"53": {
"1": {
"a": "0",
"b": "100",
"c": "8",
"d": ""
},
"5": {
"a": "0",
"b": "100",
"c": "8",
"d": ""
}
}
}
What's the best way to iterate this json? I don't think mapping it into a data object would be the best solution, since it looks like an associative array.
Any hints on that? How can I iterate it like an array?