Bad Control Character Error In Json Parse
When parsing a JSON object I am getting 'bad control character' error in the Firebug console. There are lot of questions and solutions in this site; but I am unable to crack this i
Solution 1:
Solution 2:
The problem is the \r and \n. These need to be escaped as
\\r
and
\\n
in the JSON string
Solution 3:
var s= JsonString;
$.parseJSON(s.replace(/\s+/g,""));
Post a Comment for "Bad Control Character Error In Json Parse"