Iterate through each element of JSON string in Android and iOS

Introduction We will assume that we are going to take JSON string as input String and we will look into the process to access each element of JSON String in Android and iOS. Android String jsonString = "{\"animal\":\"Lion\", \"bird\":\"Sparrow\"}"; JSONObject jsonObject = new JSONObject(jsonString); Iterator < ? > keys = jsonObject.keys(); while (keys.hasNext()) { String […]

Read More