Has anyone an idea how to loop JSON string and get all data by JSON key? I have very heavy JSON file with arrays in arrays in array.
{
"ID":"33",
"A":a,
"SUB-ID": [
{ "ID":"33"},
{ "A":"b"},
{ "SUB-ID":[] }
]
"ID":"37",
"A":a,
"SUB-ID": [
{ "ID":"38"},
{ "A":"b"},
{ "SUB-ID":[] }
]
"ID":"39",
"A":a,
"SUB-ID": [
{ "ID":"31"},
{ "A":"b"},
{ "SUB-ID":["ID":"30",SUB-ID[...]] } 'And this array in array "Sub-ID" - there may be more below each other
]
}
In Sub-Id can be infinite loop arrays....
This JSON can have lot of sub-arrays... And i need to get list of all IDs.