json parse 2d array
JSONObject jObject new JSONObject(json) JSONArray jArray jObject.getJSONArray("articles")I am unaware of how to get the "src" data, i tried sorting it into a second array but the / was not recognized. We serialize the array to JSON using the Gson.toJson() method.Convert strings array into JSON string. String daysJson gson.toJson(days) System.out.println("numbersJson " numbersJson) This sample parses a JSON array using M:Newtonsoft.Json.Linq.JArray.Parse (System.String).JArray a JArray.Parse(json) The second option is JSONOBJECTASARRAY that has the same effect as setting assoc to TRUE. Return Values.There are two ways to make this: parse input string for yourself using regular expressions or anything else, use jsondecode to do it for you. Library: JSON Package: JSON Header: Poco/JSON/Array.h.