Created
July 27, 2015 11:43
-
-
Save Bogdaan/bf057bfd80186424de46 to your computer and use it in GitHub Desktop.
foreach.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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