Home >Backend Development >PHP Tutorial >请教这个字符串为什么不能json_decode
[{"desc":"1111","imgurl":"./data/attachments/20140422/5355e745ae166.jpg"},{"desc":"333333","imgurl":"./data/attachments/20140422/5355e745c8a40.jpg"},{"desc":"u306e333","imgurl":"./data/attachments/201
字符串不全,少” ] }
[ { "desc": "1111", "imgurl": "./data/attachments/20140422/5355e745ae166.jpg" }, { "desc": "333333", "imgurl": "./data/attachments/20140422/5355e745c8a40.jpg" }, { "desc": "u306e333", "imgurl": "./data/attachments/201" }]
还有就是你数据库字段长度不足吧
手误还是确实截断了?
贴出从数据库取出来的数据
贴出 存入json数据的字段的属性?字段是否被截断。
的确是数据库字段设置的太短 给截断了,谢谢大家的热心帮忙