I thought that \s
denoted white space. But when I run it through JSON is parses as 's':
JSON.parse('["and you can\'t escape thi\s"]')
>>>["and you can't escape this"]
What does \s denote in JSON?
I thought that \s
denoted white space. But when I run it through JSON is parses as 's':
JSON.parse('["and you can\'t escape thi\s"]')
>>>["and you can't escape this"]
What does \s denote in JSON?
This should help. json string decoding encountering invalid escape \s isn't a valid escape sequence at all in JSON. Without more context it's difficult to provide any further explanation.