I am trying to parse the following JSON in Javascript but haven't been successful
{
"outer":"{'inner':{'key':'value'}}"
}
Using JSON.parse on the above JSON gives an invalid syntax error. I have verified that its a valid JSON. what am I missing?
var json = '{"outer":"{'inner':{'key':'value'}}"}';
JSON.parse(json);
This gives an unexpected identifier at the 'inner' json