Hi im wanting to create an array of all the keys in a JSONObject. my understanding (please correct me if i\'m wrong) is that i need to convert the JSONObject to a Map and th
Use the [keys()][1] iterator to iterate over all the properties, and call [get()][2] for each.
keys()
get()
Iterator iter = json.keys(); while (iter.hasNext()) { String key = iter.next(); try { Object value = json.get(key); } catch (JSONException e) { // Something went wrong! } }