UTILITIES NEWBIE

JSON string to JSON document

Recover a JSON document that has been encoded inside a single JSON string value.

Source

0 characters

Import a local UTF-8 file
Print and optional local draft

An explicit save stores only source text as plaintext in this browser on this device. Do not save secrets or use a shared device. Nothing is saved or loaded automatically.

No draft has been loaded.

Output

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.