I need to return the entire JSON string. For example, I have one json line:
[{"Locationvalue":"Payroll - 9","LocationId":"465","IsSelected":false}]
and also returned a second JSON string:
[{"CC2Description":"Denver - DN","CC2":"DN","isSelected":false},{"CC2Description":"Las Vegas - LV","CC2":"LV","isSelected":false}]
ans and so on.
In android, I wrote this:
JSONArray JsonObject = new JSONArray(JsonString.toString()); for(int i=0;i<JsonObject.length();i++) { Log.v("log", JsonObject.getString(i)); }
but I can only access one JSON array. I also want to use another JSON array.
source share