JSON string to JSON document
Recover a JSON document that has been encoded inside a single JSON string value.
Worked input and output
Input
"{\"name\":\"Ada\"}"Output
{
"name": "Ada"
}The outer string is decoded once. Its contents are then parsed as JSON and displayed as a document; text such as "hello" is not a complete JSON document unless the inner text is itself valid JSON.