I m trying to do a registration page from an android activity connectiong the datas to my sqldatabase, I m getting this error \" org.json.JSONException: Value
First of
You should set Content-Type header before sending back the response.
Content-Type
header('Content-Type: application/json'); print(json_encode(array("message" => $msg)));
Check this : Returning JSON from a PHP Script