JSON5 Validator
Parse JSON5 with comments and trailing commas and export strict JSON.
Processing stays in your browser. Non-finite numbers cannot be represented faithfully in JSON and are rejected.
How to use the json5 validator
Parse JSON5 with comments and trailing commas and export strict JSON. Complete the json5 document fields above, or upload a UTF-8 text file for the first field. Choose Run tool, review the output, then copy or download the result.
Example
{name: 'Alex',} becomes strict JSON with double-quoted keys.
Good to know
Non-finite numbers cannot be represented faithfully in JSON and are rejected.