0

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?

chopper draw lion4
  • 12,401
  • 13
  • 53
  • 100

1 Answers1

0

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.

Community
  • 1
  • 1
Mic
  • 3,810
  • 1
  • 13
  • 16