JSON5 Formatter

Format JSON5 documents while keeping comments-friendly syntax.

Cara kerja

The JSON5 formatter parses JSON5 syntax, then re-serializes it with clean indentation. It accepts comments, unquoted keys, single quotes, trailing commas, hex numbers, Infinity and NaN.

Example