1 person found this helpful
Pass the JSON string to the constructor of either JSONObject or JSONArray:
Thanks Justin. This helps. I am also trying to use GSON which is more simple solution than parsing the JSONObject.
Would you like to consider the RestTemplate(Spring) with jackson annotations to naturally map your json to your objects: