Hi,
I there a documentation to this function? I would like to read something like
this:
isJSON does not accept \n chars and @ chars in a string.
The docs say what it does: It checks to see if the string is in valid
JSON notation. To know what valid JSON notation is, please (again)
refer to
Hi,
If I send a JSON { 'str': 'pThis is a line with \n linefeed/p' } I do
get...
You haven't mentioned what language you're using to write out the
string (PHP, Python, JavaScript, C#, Java, etc.), but my suspicion is
that you're accidentally outputting an actual newline (character x0A)
Hello
I use C/C++ with Apache module
I do send \\n or br / from server to the browser.
But my question was: which chars need to be escaped too? I can see \r, \f
and \t. But the other RegExp rule I do not understand.
Manfred
--~--~-~--~~~---~--~~
You received
Hi
ok, please read, what I mean. My code actually runs perfectly.
In the past I have had problems with the newline and found, that isJSON()
checks the string coming from server. Thats fine.
I only want, that I did not run into new problems later, and want to
understand, what isJSON() does. So