About the
Reference
An independent JSON5 reference, written by one engineer and checked against the real parser.
Most developers meet JSON5 sideways. It arrives inside a Babel config, a Chromium build file or a dependency's own settings, and the official material is a short specification and a README. JSON5.dev fills in the rest: what the format allows, which parser in which language reads it, and where a JSON5 file will break a tool that only expects JSON.
What This Site Is
JSON5.dev covers the whole of JSON5 in plain language: the specification read line by line, parsers for more than a dozen languages, the config files that accept it, editor support, and honest comparisons with JSONC, YAML and TOML, including the objections people raise against it.
It is not the official JSON5 project. JSON5 is maintained in the json5 repository on GitHub, and the 1.0.0 specification at json5.org is the final word. Where this site and the specification disagree, the site is wrong and gets fixed.
How Pages Are Checked
- The tools run the reference parser. The validator, formatter, converter and the other online tools load the published
json5npm package in your browser, so a result on this site is the result your build will get. - The edge cases are tested, not guessed. The conformance page runs the project's own test corpus against that parser while you watch, valid and invalid cases alike.
- Numbers are measured. The parse-speed figures on the performance page were timed on real hardware, with the Node.js, Python and library versions written next to each result.
- Editor guides come from real installs. Pages such as Zed and Notepad++ were written by installing the editor and the extension and trying them on JSON5 files, including the steps that did not work.
- Claims are fact-checked. New guides are checked claim by claim against their sources before they are published, and every page shows its own last-updated date. The site is updated several times a month.
About the Author
JSON5.dev is written by RJ Lindelof, creator of RJL.dev.
RJ shipped his first production code in 1994. For thirteen years he wrote software full time in Java, C# and .NET, C++, Delphi, PHP and ColdFusion, which meant hand-writing and hand-fixing INI files, XML configs and property files long before JSON took their place. For the twenty-plus years since, he has led engineering teams whose systems trade JSON all day: healthcare integrations over HL7 FHIR, financial data feeds, GraphQL APIs, and TypeScript, Node.js and Python codebases with a config file in every folder.
That last part is why he writes about JSON5. JSON is a fine format for machines to send each other, and a poor one for a person to maintain: there is nowhere to write down why a timeout is 30 seconds, and one stray comma after the last entry stops a deploy. JSON5 answers exactly those complaints with syntax borrowed from ECMAScript 5.1 and nothing more, and RJ has watched enough teams lose an afternoon to a config file to think that small answer deserves a full reference.
He also has a stake in the rest of the family. Besides JSON5.dev, he writes the reference sites for JSON6 and JSOX, the two formats that pushed the JSON5 idea further toward modern JavaScript, and for JSON Lines, the one-value-per-line format behind logs and data streams. Reading a grammar, running a parser against its own edge cases and writing down what it really does is the work behind all of them.
More JSON-family sites by RJ
JSON6.dev JSON6: JSON5 plus back-tick strings, binary and octal numbers, underscore separators and undefined.
JSOX.dev The complete JSOX reference: JSON plus dates, BigInt, typed arrays, classes and references, with a live playground.
JSONL.rest Everything about JSON Lines: guides, examples and the spec for streaming data, AI training and logs.
NDJSON.com Newline Delimited JSON explained: guides, examples and the spec for streaming data, AI training and logs. Get in Touch
Found a mistake, a parser this site does not list, or a tool that reads JSON5 differently than a page says? Send a message. Corrections are the most useful mail the site gets, and RJ reads each one. Bugs in the JSON5 library itself belong in the project's issue tracker.
Common Questions
Is JSON5.dev the official JSON5 website?
No. It is an independent reference. The official project lives on GitHub and the specification at json5.org, and this site links to both as the source of truth.
Who writes JSON5.dev?
RJ Lindelof, creator of RJL.dev, a software engineer since 1994 and an engineering leader for more than twenty years, who also writes reference sites for other formats in the JSON family.
Does the site use the real JSON5 parser?
Yes. The online tools and the conformance page run the published json5 npm package in your browser. Nothing you paste is sent to a server.
How do I report a mistake?
Use the form on the contact page and pick "Factual error on a page". Include the page address and what you saw.
JavaScript
Python
TypeScript
Node.js
Rust
Java
C#
Ruby
Kotlin
Lua
Babel
Vite
webpack
ESLint
Prettier
VS Code
JetBrains