Android. Php receives the json-to-array format transmitted by Android. androidjson process: Android concatenates a json-format data transfer value. The json format of the json_decode value received by php is as follows: android json to array received by php.
Process: Android concatenates a data transfer value in json format, and converts the value of json_decode to an array in php.
Json format: {"goods": {"100075": {"content": "Haha"}, "53": {"content": "true "}, "50": {"content": "Is It "}}}
Because Android uses toString to escape "",
{"Goods": {"100075": {"content": "Haha"}, "53": {"content": "true"}, "50 ": {"content": "not "}}}
Therefore, php needs to be transferred back to htmlspecialchars_decode (), so that the json_decode is no problem.
Remember json_decode ($ arr, true); the second parameter is true.
Http://www.bkjia.com/PHPjc/1130482.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1130482.htmlTechArticlephp received Android passed json to the array problem, androidjson process: Android stitching a json format of data transfer value, php received into the array json_decode value json format :...