I´m receaving an array from php to android and I receive the following format in an String:
["Rick","Anne","Carl"]
but when I execute:
JSONObject myjson = new JSONObject(the_json);
I get:
org.json.JSONException: Value ["Rick","Anne","Carl"] of type org.json.JSONArray cannot be converted to JSONObject
why? I send the array fom php with
echo json_encode($arreglo);
I suppose this sentence send the stream with the correct format, no?