Skip to content

Instantly share code, notes, and snippets.

@Bogdaan
Created July 27, 2015 11:43
Show Gist options
  • Save Bogdaan/bf057bfd80186424de46 to your computer and use it in GitHub Desktop.
Save Bogdaan/bf057bfd80186424de46 to your computer and use it in GitHub Desktop.
foreach.java
Iterator<String> iter = json.keys();
while (iter.hasNext()) {
String key = iter.next();
try {
Object value = json.get(key);
} catch (JSONException e) {
// Something went wrong!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment