JSON parsing in android

You can parse the JSON by iterating through it, something like below:

Iterator<String> keysIterator = mAllUserJsonObject.keys();
while (keysIterator.hasNext()) 
    String keyStr = (String)keysIterator.next(); // This would be "fa0e7579" or "5c14558e"
    JSONObject valueObject = mAllUserJsonObject.getJSONObject(keyStr);

And I am hoping you can parse valueObject as the keys are known to you.

Browse More Popular Posts

Leave a Comment