This problem has been solved by myself. The data returned by the third party is ascll, so it needs to be converted into utf-8 format. It has nothing to do with json_decode
First check whether your json is in normal json format Then check whether your php file is utf-8 without BOM I have encountered similar problems before, and it will be fine after removing the BOM~
This problem has been solved by myself. The data returned by the third party is ascll, so it needs to be converted into utf-8 format. It has nothing to do with json_decode
You need to verify whether the format is correct, do not upload the code on BB:
First check whether your json is in normal json format
Then check whether your php file is utf-8 without BOM
I have encountered similar problems before, and it will be fine after removing the BOM~
Send the returned data and take a look
No problem, I analyzed it:
With true, it means it will be parsed into an array of php
Confirm first. Is the returned thing json?
First, make sure your Json is escaped in other ways. If not, you can use the Json formatting verification tool to check if there is a problem.
Online Json format verification tool
http://www.bejson.com/
No problem, I suggest you check it carefully
Double check whether the JSON data format is correct