tags:

views:

19

answers:

1

Is the presence of a \' within double quotes "invalid" in the context of a JSON response? Is there a definitive JSON spec that could give me an answer?

+3  A: 

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

You can see there how the \ is a "control" character. If you want a literal backslash within your JSON, you'll need to escape it: "\\" is a valid JSON string, for example.

Josiah