I got the Error message in Android below, it is send by PHP server implemet it as JSON array:
03-20 15:19:17.479: D/requestWorldRecords()(353): org.json.JSONException: Value {"Error":"No Result!"} of type org.json.JSONObject cannot be converted to JSONArray
The PHP script is as below:
$data = array('Error' => "No Result!");
print_r(urlencode(json_encode($data)));
Can any body correct me where I was wrong , thanks for the help !
It’s a json object, not an array. try