I am getting an error when parsing what seems like valid json. The JSON string contains an escaped double-quote character inside of a string.
I've condensed the example to be as simple as possible to reproduce and pasted below. The browser I'm using to test this is Chrome Version 100.0.4896.75.
Can anyone help me understand what I am doing wrong here?
let a = JSON.parse('{"a": "\""}');
Error: { "message": "SyntaxError: JSON.parse: expected ',' or '}' after property value in object at line 1 column 9 of the JSON data", "filename": "https://stacksnippets.net/js", "lineno": 13, "colno": 22 }