Hi I want to create a JSON array.
I have tried using:
JSONArray jArray = new JSONArray(); while(itr.hasNext()){ int objId = itr.next(); jArray.
The clue is in the documentation for JSONArray for method put(int index, String value)
If the index is greater than the length of the JSONArray, then null elements will be added as necessary to pad it out.