2 of 4
incorrect tag
How can I turn a JSONArray into a JSONObject?
Basically I have:
JSONArray j = new JSONArray();
j.add(new JSONObject()); //JSONObject has a bunch of data in it
j.add(new JSONArray()); //JSONArray has a bunch of data in it
And now I would like to turn that JSONArray into a JSONObject with the same information in it. So that I can pass around the Object and then when I want I can grab all the information out of the object. Any help would be appreciated, Thanks.
Grammin
- 12.3k
- 24
- 84
- 141
lang-js