Skip to content Skip to sidebar Skip to footer

Warning In Longcat :jsonexception

This is the code in eclipse: JSONObject j = new JSONObject(getRequest(myUrl)); JSONArray jArray = j.getJSONArray('data'); for (int i = 0; i < jArray.length(); i++) { sret +

Solution 1:

Instead of

$data = "{data:".json_encode($rows)."}";
echo$data;

use

print(json_encode($data));

Post a Comment for "Warning In Longcat :jsonexception"