Seldaek / jsonlint

JSON Lint for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error escaping special character

davidkastanek opened this issue · comments

Bad parsing of escape character. Escape tag is not properly parsed so the special character isn't escaped. Instead it throws exception:

... does not contain valid JSON
Parse error on line xxx:
.../nette.org/donate": "[1;37;42m Please c
----------------------^
Invalid string, it appears you forgot to terminate a string, or attempted to write a multiline string which is invalid

Can you give the corresponding JSON ?

The issue is connected to a problem with PHP5.3 not being able to properly parse escape characters. Upgrading PHP should resolve the problem. Sorry to bother you. :)