Please refer to the following link for more information: why can't json_decode [{desc: 1111, imgurl: .dataattachments201404225355e745ae166.jpg}, {desc: 333333, imgurl: signature}, and {desc?
[{"Desc": "1111", "imgurl ":". /data/attachments/20140422/5355 e745ae166.jpg "},{" desc ":" 333333 "," imgurl ":". /data/attachments/20140422/5355 e745c8a40.jpg "},{" desc ":" u306e333 "," imgurl ":". /data/attachments/201
The data is first stored in the database by json_encode, but the json_decode obtained from the database returns NULL.
Later, I tried to use serialize to save the data to the database and fetch it from the database. unserialize returned bool (false)
The operation in the same file should not involve encoding when it is stored in the database or retrieved from the database. ask the possible reasons.
------ Solution --------------------
Incomplete string, less "]}
------ Solution --------------------
Also, your database field length is insufficient.
------ Solution --------------------
Are you sure you have cut off your hand by mistake?
Paste the data obtained from the database
------ Solution --------------------
Paste the attributes of the fields stored in json data? Whether the field is truncated.