2
How do I get the data from this Json? I want to turn it into a Jsonarray to go through, but it’s a Jsonobject...
{
"1":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"},
"2":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"},
"3":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"},
"4":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"},
"5":{"a":"1","c":"0","d":"0","m":"0","ns":"0","proc":"0"}
}
thank you very much I managed
– Anderson Scherdovski
No problem, I’ll thank you to mark it as correct.
– O_Vagner
Just note that this format will only work if the Jsonobject keys are numbers, sequential and started in 1.
for(int i = 1; i <= json.lenght(); i++) {
 array.put(json.getJSONObject(""+i));
}
– Amelco
yes yes... thank you very much
– Anderson Scherdovski