且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP中的json_decode()问题

更新时间:2023-12-04 14:42:04

查看 http://jsonlint.com/

根据JSONLint,您遇到以下错误:

Accoring to JSONLint, you have the following error:

Parse error on line 82:
...            "text": "Make it easier for 
-----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['

错误在于字符串'\ x27s'

The error is with this in the string '\x27s'

第92行也一样.

"Roger\x27scompanion\x3cem\x3ehelped\x3c/em\x3ehimwiththeren"

用适当的unicode字符替换它们,或在斜杠转义字符串时添加一个额外的斜杠.

Replace them with their appropriate unicode characters or add an extra slash as one slash is escaping your string.