JSON requires double quotes — single quotes are valid JavaScript but invalid JSON. This is the most common error when copying object literals from code. Paste your JSON below and JSONBlitz converts all single-quoted keys and values to correctly escaped double quotes automatically.
Formatted output appears here...
Process JSON to generate code...
JSON requires double quotes for all strings. Single quotes are valid in JavaScript but not in JSON, so copying object literals from your code directly into a JSON context always fails. JSONBlitz converts single-quoted keys and values to double quotes automatically, handling escaped characters correctly.
The JSON specification (RFC 8259) mandates double quotes for string literals. Single quotes are legal JavaScript but illegal JSON. When a JavaScript developer copies an object literal to use as JSON data, the parser immediately throws an "unexpected token" error pointing at the first apostrophe.
Paste your single-quoted JSON and JSONBlitz converts every single-quoted key and value to a properly escaped double-quoted equivalent. Apostrophes inside values are preserved correctly. The Diff tab shows exactly which characters were changed.
© 2026 JSONBlitz — single quotes in JSON, fix JSON single quote error, convert single quotes to double quotes JSON