I use a JSON library called JSONObject (I don\'t mind switching if I need to).
JSONObject
I know how to iterate over JSONArrays, but when I parse JSO
JSONArrays
org.json.JSONObject now has a keySet() method which returns a Set and can easily be looped through with a for-each.
Set
for(String key : jsonObject.keySet())