What is stringified JSON?
LLM APIs, MCP tool calls, webhooks, and message queues frequently serialize a JSON object as a string field—sometimes two or three layers deep. Quotes and newlines inside that field are escaped with backslashes, so a standard JSON formatter still shows it as an unreadable string.
{"tool":"mcp.github.search","arguments":"{\"repo\":\"unquote\",\"query\":\"{\\\"state\\\":\\\"open\\\"}\"}"}{
"tool": "mcp.github.search",
"arguments": {
"repo": "unquote",
"query": { "state": "open" }
}
}How to unescape nested JSON
- Paste the escaped JSON payload or drop a log file into the viewer above (or click the sample button).
- Unquote detects valid JSON inside string fields and recursively expands nested layers into browsable objects and arrays.
- Search across inner keys and values, decode JWTs or Unix timestamps in the inspector, or compare two expanded payloads with Compare JSON.
- Copy a single subtree or export the expanded JSON / JSONL file.
Why parse layers instead of stripping backslashes?
Regex search-and-replace on backslashes corrupts Windows file paths, regular expressions, Unicode escapes, and escaped line breaks. Unquote uses a real JSON parser at each nested layer, leaves ordinary text untouched, and preserves exact number lexemes so long 64-bit IDs never round.
Difference from a regular JSON formatter
A JSON formatter only adds indentation while leaving stringified values collapsed as raw text. Unquote changes nested JSON strings into navigable tree nodes so you can search, jump by JSONPath, diff, and export the expanded structure locally.
Frequently asked questions
- How do I unescape double-encoded or nested JSON strings online?
- Paste your JSON response or log line into the Unquote box above and click Parse. Unquote parses each valid JSON string recursively across nested layers into a structured tree, then lets you search inner keys or copy and export the expanded JSON locally.
- Why does JSON.parse fail with Unexpected token or Bad control character on escaped JSON?
- Double-escaped quotes (\"), unescaped newlines inside string literals, or stray backslashes commonly trigger JSON.parse SyntaxError failures. Unquote parses each layer with a strict JSON parser: valid nested JSON strings expand recursively while non-JSON or malformed strings stay intact instead of breaking the whole payload.
- Can Unquote unescape MCP tool call arguments and LLM API JSON responses?
- Yes. OpenAI, Anthropic, and MCP tool calls frequently encode structured arguments and results as escaped JSON strings. Paste the raw response or log line above to recursively unescape nested layers, inspect inner fields, and copy clean JSON locally.
- Will JSON unescaping round large 64-bit integer IDs?
- No. Unquote preserves original JSON number source lexemes through parsing, display, copying, and export. Large integers such as Snowflake or Stripe-style numeric IDs keep every digit intact instead of losing precision in JavaScript floating-point numbers.
- Is it safe to paste production API responses with tokens or payloads?
- Parsing runs 100% locally in your browser with no server upload or cloud storage. If you need to share an excerpt with teammates, use Export problem excerpt to redact specified paths before copying or downloading Markdown or JSONL.