hi does anyone know how to create a Array that contains objects that in each objects contain several objects? i just can\'t seem to get my head round it
the structur
Do you mean that?:
JSONObject obj = new JSONObject(); obj.put("x", "1"); JSONObject parent_object = new JSONObject(); parent_object.put("child", obj); JSONArray array = new JSONArray(parent_object.toString());