JSON requires every key to be in double quotes. JavaScript object literals use bare identifiers, so pasting JS code into a JSON context always fails. JSONBlitz wraps all unquoted keys in double quotes automatically — paste below and get valid JSON instantly.
Formatted output appears here...
Process JSON to generate code...
JSON requires all object keys to be wrapped in double quotes. JavaScript objects use unquoted keys, so copying JS code directly into a JSON context throws an "unexpected token" or "expected property name" error. JSONBlitz adds the missing quotes automatically.
JavaScript allows bare identifiers as object keys: {name: "Alice"} is valid JS but invalid JSON. The JSON specification requires every key to be a quoted string: {"name": "Alice"}. Developers frequently hit this error when pasting object literals from their source code into API request bodies or config files.
Paste the object with unquoted keys and JSONBlitz wraps every bare key in double quotes. Keys that contain special characters or spaces are handled correctly. The Diff tab shows exactly which keys were quoted.
© 2026 JSONBlitz — unquoted keys JSON, fix JSON unquoted key error, expected property name JSON, JSON key must be string