JSON Valid Chars

Is the presence of double quotes “invalid” in the context of the JSON response? Is there a specific JSON specification that could give me an answer?

+3
source share
1 answer

Check http://www.json.org/ and scroll down to the "String" chart.

You can see how \ is the "control" character. If you need a literal backslash in your JSON, you need to avoid it: "\\"is a valid JSON string, for example.

+10
source

Source: https://habr.com/ru/post/1754346/


All Articles