History of
From a one-day parser in May 2012 to a format built into databases, runtimes and Apple platforms.
Aseem Kishore wrote the first JSON5 parser by extending Douglas Crockford's JSON parser with comments, trailing commas and friendlier strings. Hacker News was largely unimpressed. JavaScript developers took to it, and years later database engines and operating systems learned to read it.
This history follows every release in the reference changelog, the 2018 specification, Jordan Tucker's rewrite, a 2022 security fix, platform adoption, and the version 3 work now under way on GitHub.
TL;DR: JSON5 began on the last weekend of May 2012. Version 1.0.0 of both the library and the written specification arrived on March 11, 2018, and a native ES5 rewrite followed as 2.0.0 that August. The latest npm release as of November 29, 2026 is 2.2.3 (December 31, 2022), but the repository saw heavy work toward a version 3.0.0 in October 2026.
Before JSON5: JSON and Its Limits
JSON came out of JavaScript and was written up by Douglas Crockford as RFC 4627 in July 2006, an Informational document that registered the application/json media type. It describes a deliberately small grammar. Strings use double quotes, object keys are strings, and there is no syntax for comments or trailing commas. The later standards (ECMA-404 in October 2013, then RFC 7159 in 2014 and RFC 8259 in 2017) kept that shape.
Those choices suit machines and frustrate people who maintain files by hand. On April 6, 2011, developer Michael Bolin published Suggested Improvements to JSON (linked here as an archived copy, because the original address refused requests on November 29, 2026). Pointing at configuration files and test data, he argued for C-style comments, an optional trailing comma and optional quotes around simple keys, and noted that ECMAScript 5 had already removed the old browser obstacles to the last two. The JSON5 README credits Bolin with arriving at and publishing some of the same ideas independently.
The fifth edition of ECMAScript matters because it supplies the name and the rulebook. JSON5 borrows syntax from ECMAScript 5.1 (published June 2011) and nothing newer. It is not the fifth version of JSON, a confusion that was raised on the specification tracker as early as 2019.
Origins: May 2012
Aseem Kishore told the story himself ten years later in a retrospective dated August 7, 2022. He had been turning over a small problem he met while writing software for about a year. He recalls coding for roughly ten hours on Memorial Day 2012 and sharing the result on Hacker News that night.
Public timestamps place that work on the holiday weekend, apparently one day earlier than he remembered: Memorial Day was Monday, May 28, while the events below fall on Sunday, May 27 in US time zones. TheGitHub repository was created on May 27, 2012. The npm registry shows version 0.0.0 published that day at 20:32 UTC and 0.0.1 at 02:13 UTC on May 28. The post Show HN: JSON5 — modern JSON is stamped 02:34 UTC on May 28 (7:34 p.m. Pacific on May 27), about 21 minutes after 0.0.1 reached npm.
The changelog starts with an unusual entry. Version 0.0.0 is defined as Crockford's original json_parse.js, a parser for ordinary JSON. Version 0.0.1 is the first JSON5 parser, and it added five things:
- Unquoted object keys, including reserved words (Unicode characters and escapes in keys came later)
- Single-quoted strings
- Multi-line strings
- Trailing commas in arrays and objects
- Inline and block comments
The reception
Kishore describes the Hacker News response as dismissive: many commenters disputed that the problem was real or worth solving, even though he had credited earlier writing about it. Mitchell Hashimoto, himself the creator of a well-known open-source project, went further with a parody project that named him; Kishore writes that he was mainly surprised and shell-shocked, and kept building.
His conclusion was that Hacker News as a whole was not the audience. JavaScript engineers were, and when he posted to the Node.js mailing list the response was notably warmer. He later summarized the outcome in one sentence: "All adoption has been entirely organic, with no company or marketing behind it."
The 0.x Releases, 2012 to 2016
The early releases are where the syntax was settled, sometimes by reversing a decision once someone checked what ES5 really allows. Dates below are the changelog dates.
| Version | Date | What changed |
|---|---|---|
| 0.0.0 | 2012-05-27 | Crockford's json_parse.js, counted as the starting point |
| 0.0.1 | 2012-05-27 | First JSON5 parser: unquoted keys, single and multi-line strings, trailing commas, comments |
| 0.1.0 | 2012-06-03 | Added hexadecimal numbers, leading decimal points, a require() hook and a command-line converter; syntax errors became SyntaxError. Rejected octal numbers (previously misread as base 10), trailing decimal points and omitted array elements |
| 0.2.0 | 2013-01-27 | Added Infinity, -Infinity and a leading plus sign. Trailing decimal points returned because ES5 allows them. Unescaped newlines in strings and negative hexadecimal numbers were rejected |
| 0.4.0 | 2014-11-01 | First JSON5.stringify(), written by Andrew Eisenberg. Added NaN, made the last duplicate key win, restored negative hexadecimal numbers and tightened whitespace and newline handling. Includes the 0.3.0 work, which was tagged but never published to npm |
| 0.5.0 | 2016-03-17 | Parse errors gained line and column numbers; Node.js 0.6 and 0.8 were dropped |
| 0.5.1 | 2016-11-27 | Empty arrays no longer printed with indentation |
Negative hexadecimal numbers show the project's method well. Version 0.2.0 removed -0xC8 on the belief that ES5 forbade it, although V8 had accepted it. In 2014 Jordan Tucker reopened the question, showed that the sign is a separate operator applied to a valid literal, and the syntax came back in 0.4.0. The test of whether something belongs in JSON5 was already "what does ES5 do?".
Dates were the other long argument. Issue #3 was opened on May 28, 2012, the day after the first release. Kishore leaned toward adding no new data types, although he later said he was still open to pull requests, and the issue stayed open for almost six years.
Writing the Specification
For its first years JSON5 was defined by a README and a parser. On March 30, 2016, Jordan Tucker made the first commit to a separate json5-spec repository, the day before the json5 GitHub organization was created. The commit history records how the document matured:
| Date | Step |
|---|---|
| 2016-03-30 | First draft, typeset in LaTeX and published as the v0.5.0-draft prerelease with a PDF |
| 2017-06-09 | A proposed ABNF grammar from Daniel Frey is merged |
| 2017-09-15 | The source moves from LaTeX to Bikeshed |
| 2017-09-28 | It moves again, to Ecmarkup, the markup tool used for ECMAScript-style specifications |
| 2017-10-01 | A conformance section defines how keywords, examples and notes are read |
| 2018-03-11 | The commit "Promote to standard" |
| 2018-03-16 | The v1.0.0 release is published on GitHub, version 1.0.0 gets its own folder and the spec.json5.org address is set up |
The result is The JSON5 Data Interchange Format, version 1.0.0, dated March 2018, with a license notice naming Kishore and Tucker. No newer version has been published since. A v1.1.0 branch received three commits on March 16, 2018 adding a recommendation for writing dates and times as strings or Unix time; it has not been merged. What "standard" does and does not mean here is covered on the standards status page, and the rules themselves in the specification guide.
Version 1.0.0, March 2018
The v1.0.0 milestone was opened on September 20, 2017, and prereleases began appearing on npm within days. Two of them tell a story of restraint: 1.0.0-dates and 1.0.0-regexps were experimental builds in which Tucker tried opt-in parsing of date strings and regular expressions. Kishore argued on the regular expression issue that 1.0 should formalize what already existed, and Tucker agreed that experimental features could live elsewhere. Neither shipped. The date issue was closed on March 15, 2018 as incompatible with the new specification, and the discussion moved to the specification tracker. The design rationale page follows those choices in detail.
Version 1.0.0 was released on March 11, 2018, the same day the specification was promoted. It dropped Node.js 0.10 and 0.12 and made Node.js 4 the minimum. The main additions:
- Unicode property names and Unicode escapes in names, closing the very first issue in the tracker
\v,\0,\x0F-style escapes and unnecessary escapes in strings; more whitespace characters- U+2028 and U+2029 allowed in strings for JSON compatibility, with a warning
stringifygained an options object, aquoteoption, replacer arrays,toJSON5support, smart single-quote output and trailing commas when indenting- The command-line tool learned standard input and output,
--out-file,--spaceand--validate require('json5/lib/register')replacedjson5/lib/require, which stayed as a deprecated alias
Version 1.0.1 followed on March 17, 2018. It made parse throw on unclosed objects and arrays and temporarily removed the project's own package.json5 until it could be kept in step with package.json.
The Version 2 Rewrite, 2018 to 2022
Version 2.0.0 (August 16, 2018) is a break in the code more than in the format. With Node.js 6 as the new minimum, the library was rewritten in native ES5 and its dependence on Babel was removed. The release also added Unicode 10 identifier support, moved the tests from Mocha to Tap, shipped an unminified browser build alongside a minified one, and restored an automatically generated package.json5. The README credits Tucker with aligning JSON5 more closely with ES5, writing the specification and rewriting the codebase from the ground up.
| Version | Date | What changed |
|---|---|---|
| 2.0.0 | 2018-08-16 | Native ES5 rewrite, Node.js 6 minimum, Unicode 10, Tap tests |
| 2.0.1 | 2018-08-18 | Browser builds in dist support ES5 |
| 2.1.0 | 2018-09-28 | ES module browser builds (index.mjs, index.min.mjs) |
| 2.1.1 | 2019-10-02 | A module field for bundlers; \0 before a digit is written as \x00; spelling fixes |
| 2.1.2 | 2020-03-16 | Upgraded the minimist dependency to 1.2.5 |
| 2.1.3 | 2020-04-04 | Fixed an out-of-memory bug when parsing numbers |
| 2.2.0 | 2021-01-31 | Bundled, documented TypeScript declarations; @types/json5 no longer needed |
| 2.2.1 | 2022-03-21 | Removed minimist entirely in response to CVE-2021-44906 |
| 2.2.2 | 2022-12-16 | __proto__ keys become ordinary properties (security fix) |
| 1.0.2 | published 2022-12-30 | The same fix backported to the 1.x line |
| 2.2.3 | 2022-12-31 | Republished so that npm's latest tag points at 2.x again |
Two repositories created alongside the organization in 2016, json5-dotnet and json5-go, described themselves as official implementations. Both are archived now, as is a small json5-vscode repository. Libraries for other languages are largely independent projects; see the implementations directory. A shared json5-tests suite, created in September 2016, gives them a common target.
December 2022: CVE-2022-46175
The most serious episode in the library's history was a prototype pollution flaw. JSON5.parse assigned a key named __proto__ in a way that set the returned object's prototype, so a hostile document could give the object inherited properties such as isAdmin. It did not modify the global Object.prototype.
The behavior had been questioned in June 2019 in issue #199, which was closed on October 1, 2022 with a reference to a fix commit. No npm release had carried a fix when, at 01:03 UTC on December 16, 2022, Jonathan Gregson opened issue #295 asking where to report a vulnerability. Tucker asked for the details by mail, and version 2.2.2 was on npm at 06:38 UTC the same day. The project then published a security policy.
| Item | Detail |
|---|---|
| Affected versions | Below 1.0.2, and 2.0.0 through 2.2.1 |
| Fixed versions | 2.2.2 (2022-12-16) and 1.0.2 (2022-12-30) |
| NVD entry published | 2022-12-24; NVD scores it 8.8 (High) |
| GitHub advisory | GHSA-9c47-m6qq-7p4h, published 2022-12-29; scored 7.1 (High) |
The 1.x backport came from a community pull request, #298, which argued that 1.0.1 was still heavily downloaded. Publishing 1.0.2 had a side effect: it took npm's latest tag, and tools began advising users on 2.x to "upgrade" to 1.0.2. Issue #299 reported it on December 31, and 2.2.3 appeared 45 minutes later. This script, run against the real packages with Node.js 24, shows the difference:
// npm i j101@npm:[email protected] j102@npm:[email protected] j221@npm:[email protected] j222@npm:[email protected]
const text = '{ "foo": "bar", "__proto__": { "isAdmin": true } }';
for (const name of ['j101', 'j102', 'j221', 'j222']) {
const o = require(name).parse(text);
console.log(require(name + '/package.json').version, o.isAdmin, Object.keys(o).join());
}
// 1.0.1 true foo
// 1.0.2 undefined foo,__proto__
// 2.2.1 true foo
// 2.2.2 undefined foo,__proto__Old copies often hide deep in dependency trees. The security tutorial explains how to find them and parse untrusted input safely.
Platform Adoption Milestones
Adoption went in two waves. First, JavaScript tools used the library for their configuration files. Later, platforms built JSON5 reading into themselves, with no npm package involved.
| Date | Project | Milestone |
|---|---|---|
| Mid-2015 | Babel | The changelog entry covering 5.8.13 to 5.8.20 switches .babelrc parsing to the json5 package (5.8.20 reached npm on July 31, 2015) |
| 2019-05-01 | pnpm | Pull request #1799 adds package.json5 and package.yaml manifests |
| 2019-06-28 | JupyterLab 1.0.0 | The rewritten settings system uses JSON5 syntax |
| 2019-11-05 | Babel 7.7.0 | babel.config.json and .babelrc.json arrive, parsed as JSON5 |
| 2021-09-20 | Apple | iOS 15 ships with JSONDecoder.allowsJSON5; the API also covers macOS 12, tvOS 15, watchOS 8 and later visionOS |
| 2023-05-16 | SQLite 3.42.0 | The JSON SQL functions accept JSON5 input; output stays strict JSON |
| 2023-11-12 | shared-mime-info 2.4 | The freedesktop.org file type database adds application/json5 |
| 2026-01-27 | Native Bun.JSON5 parse and stringify plus .json5 imports |
Other uses are documented without a single clean start date. The README points to
Chromium's runtime_enabled_features.json5 and also names Next.js, Retool and WebStorm; WebStorm's documentation confirms that .json5 files are treated as JSON5. Fuchsia writes its component manifest sources as JSON5, OpenHarmony requires a module.json5 in every module, and
Renovate accepts renovate.json5, though its documentation now recommends JSONC for commented configuration. The community In the Wild list adds Dyalog APL configuration files and many libraries.
Scale on npm grew with the tools. The 2022 README cited more than 65 million weekly downloads; the npm downloads API counts 303,643,299 for November 22 to 28, 2026. Much of that is indirect, through packages that depend on the library. More examples are on who uses JSON5.
Is JSON5 Maintained?
Yes, as of November 29, 2026, with an important distinction between the format, the released package and the source code.
| Part | Last change | Reading |
|---|---|---|
| Specification | Version 1.0.0, March 2018; last repository commit May 15, 2023 (a README link) | Stable by design; 16 questions remain open on its tracker |
| npm package | 2.2.3, December 31, 2022 | No release in almost four years |
| Library source | Merges on main through October 29, 2026; open pull requests updated November 29 | Active work toward 3.0.0, not yet released |
| Test suite | Pushed February 20, 2026 | Not archived |
The quiet stretch was long. The main branch has little to show between early 2023 and a grammar fix in October 2024, then nothing until October 2026. In August 2026 Prettier switched to a fork, @bybrave/json5. Its author, Vladyslav Kaplin, brought the packaging work back upstream in pull request #370, merged on October 15, 2026. A run of fixes and performance changes from several contributors followed.
What the unreleased changelog contains
- ES modules only, Node.js 22.12 or later, and no more prebuilt browser bundles in
dist - Removal of the
requirehooks;stringifythrows onBigIntand on an invalidquoteoption - No more console warnings when U+2028 or U+2029 is parsed inside a string
- An opt-in
bigintparse option and identifier tables upgraded from Unicode 10 to Unicode 18 - Many correctness fixes that bring revivers, replacers and error positions closer to
JSON
Read the README with care. The README on main describes the unreleased version, including the bigint option. npm install json5 still gives you 2.2.3. The release discussion opened on November 17, 2026 lists remaining items, including whether to move the command-line tool into its own package. A November 29 reply from contributor James Garbutt sorted the pending pull requests into ready, redundant and undecided. No release date has been announced there.
People and Governance
Kishore founded the project. His retrospective gives much of the credit for its success to others, above all Jordan Tucker, who by 2022 had contributed far more code than he had, written the formal specification, prototyped further implementations, designed the logo and taken on maintenance. As of November 29, 2026, the GitHub contributors list has 32 accounts, led by Tucker (246 commits) and Kishore (147). Both are listed as npm maintainers.
| Person | Credited contribution | Source |
|---|---|---|
| Aseem Kishore | Founder and first implementation | README |
| Jordan Tucker | Specification, rewrite, ongoing maintenance | README |
| Max Nanasy | Early patches and ideas, including hexadecimal and leading-point numbers | README, changelog |
| Andrew Eisenberg | The original stringify | README, changelog |
| Douglas Crockford | JSON itself, and the parser the first version was modeled on | README |
| Michael Bolin | Independent, earlier publication of similar ideas | README |
| @pepkin88, @rowanhill | Infinity and NaN | Changelog |
| @Midar | Fixes to decimal points and newlines in strings | Changelog |
| @amb26 | Line and column numbers in errors | Changelog |
| Daniel Frey | Proposed ABNF grammar for the specification | Spec commits |
| Jonathan Gregson | Reported the 2022 vulnerability | Changelog |
| Vladyslav Kaplin, James Garbutt and others | 2026 packaging, fixes and performance work | Commit history |
How decisions get made
The project lives in the
json5 organization, not in a standards body or foundation. Kishore wrote that he deliberately gave up control, handing commit access to contributors. One public example shows how large steps have been handled: when someone suggested submitting JSON5 to Ecma, Tucker said he wanted Kishore's approval first, and Kishore replied that he was happy to defer to Tucker's judgment. One principle is written into the README: no feature will ever be added that makes JSON5 incompatible with ES5.
| You want to report | Where it goes |
|---|---|
| A problem or idea about the data format | json5/json5-spec issues |
| A bug or feature in the JavaScript library | json5/json5 issues |
| A security vulnerability | A private advisory draft, per the security policy; never a public issue |
| A bug in another language's library | That library's own repository |
Both the library and the specification use the MIT License. The library's license file reads "Copyright (c) 2012-2018 Aseem Kishore, and others"; the specification's notice reads "Copyright (c) 2017 Aseem Kishore, Jordan Tucker".
JSON5 Timeline
| Date | Event | Kind |
|---|---|---|
| 2006-07 | RFC 4627 describes JSON | Background |
| 2011-04-06 | Michael Bolin publishes his suggested JSON improvements | Background |
| 2011-06 | ECMAScript 5.1 | Background |
| 2012-05-27 | Repository created; 0.0.0 and the first JSON5 parser | Release |
| 2012-05-28 | Show HN post | Community |
| 2012-06-03 | 0.1.0 | Release |
| 2013-01-27 | 0.2.0 | Release |
| 2014-11-01 | 0.4.0 adds stringify | Release |
| 2015 | Babel reads .babelrc with JSON5 | Adoption |
| 2016-03 | 0.5.0; specification started; GitHub organization created | Project |
| 2016-11-27 | 0.5.1 | Release |
| 2018-03-11 | Library 1.0.0 and specification 1.0.0 | Release |
| 2018-03-17 | 1.0.1 | Release |
| 2018-08-16 | 2.0.0, the native ES5 rewrite | Release |
| 2018-08 to 2020-04 | 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3 | Release |
| 2019 | pnpm, JupyterLab and Babel 7.7.0 adoption | Adoption |
| 2021-01-31 | 2.2.0 bundles TypeScript types | Release |
| 2021-09-20 | iOS 15 | Adoption |
| 2022-03-21 | 2.2.1 | Release |
| 2022-08-07 | Kishore's ten-year retrospective | Community |
| 2022-12-16 | 2.2.2 fixes the prototype pollution flaw | Security |
| 2022-12-30 / 31 | 1.0.2 backport, then 2.2.3 | Release |
| 2023-05-16 | SQLite 3.42.0 | Adoption |
| 2023-11-12 | shared-mime-info 2.4 | Adoption |
| 2026-01-27 | Bun 1.3.7 | Adoption |
| 2026-10 | Version 3.0.0 development on main | Project |
Common Questions
Who created JSON5?
Aseem Kishore, in May 2012. Jordan Tucker later wrote the specification, rewrote the reference library and became its maintainer.
Why is it called JSON5?
The 5 refers to ECMAScript 5. Tucker explained in a 2019 discussion that the format targets ES5, borrows syntax only from it and will always stay compatible with it. He also said he did not choose the name and would have picked something less specific.
Is JSON5 dead?
No. The npm package went from December 2022 to November 2026 without a release, which is where the impression comes from. The source code is being actively changed toward 3.0.0, and SQLite, Apple platforms and Bun read the format natively.
Will there be a newer JSON5 format version?
None has been announced. Version 3.0.0 is a version of the JavaScript package, not of the format. A request to move past ECMAScript 5.1 is open on the specification tracker.
Where can I check these dates?
The changelog gives release dates, the npm registry gives publication times, and the specification repository's commits show how the document evolved. All are linked below. Dates can differ by a day between them because the registry records UTC.
Sources
(51)
- json5/json5 CHANGELOG.md
- json5/json5 README.md
- npm registry record for json5
- npm downloads, November 22 to 28, 2026
- Aseem Kishore, ten-year retrospective on JSON5 (August 7, 2022)
- Hacker News: Show HN: JSON5
- Michael Bolin, Suggested Improvements to JSON (April 6, 2011), Internet Archive copy
- The JSON5 Data Interchange Format 1.0.0
- json5-spec commit history
- json5-spec releases
- json5-spec v1.1.0 branch, compared with master
- json5 closed milestones
- json5-tests
- GitHub contributors list for json5/json5
- RFC 7159
- json5-spec issues (#4, #15, #37, #56)
- json5 issue #3, date support
- json5 issue #36, negative hexadecimal literals
- json5 issue #91, regular expressions
- json5 issue #190, consolidating human-readable JSON efforts
- json5 issue #199, __proto__ handling
- json5 issue #295, prototype pollution report
- json5 pull request #298, v1 backport
- json5 issue #299, npm latest tag
- NVD: CVE-2022-46175
- GitHub Advisory GHSA-9c47-m6qq-7p4h
- json5 pull request #370, version 3 packaging
- json5 issue #424, version 3.0.0 release status
- Prettier pull request #19843
- The json5 GitHub organization
- JSON5 security policy
- json5 license
- JSON5 wiki: In the Wild
- RFC 4627
- RFC 8259
- ECMA-404
- ECMA-262 Edition 5.1
- Babel 5 changelog
- Babel: Config Files
- pnpm pull request #1799
- JupyterLab changelog (1.0)
- Apple: JSONDecoder.allowsJSON5
- Apple Newsroom: iOS 15 is available
- SQLite 3.42.0 release log
- SQLite JSON functions
- shared-mime-info merge request 257
- Bun v1.3.7 announcement
- WebStorm: JSON
- Fuchsia: component manifests
- OpenHarmony: module.json5 configuration file
- Renovate: configuration options
Last reviewed: November 29, 2026.
JavaScript
Python
TypeScript
Node.js
Rust
Java
C#
Ruby
Kotlin
Lua
Babel
Vite
webpack
ESLint
Prettier
VS Code
JetBrains
pnpm
Apple
SQLite 3.42.0