In Chrome console, I type:
JSON.stringify({a:{a:'{"a":"a"}'}})
I get the output:
"{"a":{"a":"{\"a\":\"a\"}"}}"
And I try to deserialize by:
JSON.parse('{"a":{"a":"{\"a\":\"a\"}"}}')
I get the error:
Uncaught SyntaxError: Unexpected token a(…)
How can I deserialize the original object?

JSON.parse("{\"a\":{\"a\":\"{\\\"a\\\":\\\"a\\\"}\"}}")