History of JSON5

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.

A wall timeline of JSON5 milestones from the first parser in 2012 to platform adoption

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.

History icon

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.

Timeline of JSON5: first parser 0.0.1 on May 27, 2012, first JSON5.stringify in 0.4.0 on Nov 1, 2014, specification 1.0.0 on Mar 11, 2018, the 2.0.0 ES5 rewrite on Aug 16, 2018, and 2.2.3 on npm on Dec 31, 2022

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.

Rocket icon

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."

Branch icon

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.

VersionDateWhat changed
0.0.02012-05-27Crockford's json_parse.js, counted as the starting point
0.0.12012-05-27First JSON5 parser: unquoted keys, single and multi-line strings, trailing commas, comments
0.1.02012-06-03Added 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.02013-01-27Added 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.02014-11-01First 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.02016-03-17Parse errors gained line and column numbers; Node.js 0.6 and 0.8 were dropped
0.5.12016-11-27Empty 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.

Specification icon

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:

DateStep
2016-03-30First draft, typeset in LaTeX and published as the v0.5.0-draft prerelease with a PDF
2017-06-09A proposed ABNF grammar from Daniel Frey is merged
2017-09-15The source moves from LaTeX to Bikeshed
2017-09-28It moves again, to Ecmarkup, the markup tool used for ECMAScript-style specifications
2017-10-01A conformance section defines how keywords, examples and notes are read
2018-03-11The commit "Promote to standard"
2018-03-16The 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.

Star icon

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
  • stringify gained an options object, a quote option, replacer arrays, toJSON5 support, smart single-quote output and trailing commas when indenting
  • The command-line tool learned standard input and output, --out-file, --space and --validate
  • require('json5/lib/register') replaced json5/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.

Refresh icon

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.

VersionDateWhat changed
2.0.02018-08-16Native ES5 rewrite, Node.js 6 minimum, Unicode 10, Tap tests
2.0.12018-08-18Browser builds in dist support ES5
2.1.02018-09-28ES module browser builds (index.mjs, index.min.mjs)
2.1.12019-10-02A module field for bundlers; \0 before a digit is written as \x00; spelling fixes
2.1.22020-03-16Upgraded the minimist dependency to 1.2.5
2.1.32020-04-04Fixed an out-of-memory bug when parsing numbers
2.2.02021-01-31Bundled, documented TypeScript declarations; @types/json5 no longer needed
2.2.12022-03-21Removed minimist entirely in response to CVE-2021-44906
2.2.22022-12-16__proto__ keys become ordinary properties (security fix)
1.0.2published 2022-12-30The same fix backported to the 1.x line
2.2.32022-12-31Republished 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.

Security icon

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.

ItemDetail
Affected versionsBelow 1.0.2, and 2.0.0 through 2.2.1
Fixed versions2.2.2 (2022-12-16) and 1.0.2 (2022-12-30)
NVD entry published2022-12-24; NVD scores it 8.8 (High)
GitHub advisoryGHSA-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.

Globe icon

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.

DateProjectMilestone
Mid-2015Babel logoBabelThe 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-01pnpm logopnpmPull request #1799 adds package.json5 and package.yaml manifests
2019-06-28JupyterLab 1.0.0The rewritten settings system uses JSON5 syntax
2019-11-05Babel logoBabel 7.7.0babel.config.json and .babelrc.json arrive, parsed as JSON5
2021-09-20iOS logoAppleiOS 15 ships with JSONDecoder.allowsJSON5; the API also covers macOS 12, tvOS 15, watchOS 8 and later visionOS
2023-05-16SQLite logoSQLite 3.42.0The JSON SQL functions accept JSON5 input; output stays strict JSON
2023-11-12shared-mime-info 2.4The freedesktop.org file type database adds application/json5
2026-01-27Bun logoBun 1.3.7Native Bun.JSON5 parse and stringify plus .json5 imports

Other uses are documented without a single clean start date. The README points to Chrome logoChromium'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 logoRenovate 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.

Time icon

Is JSON5 Maintained?

Yes, as of November 29, 2026, with an important distinction between the format, the released package and the source code.

PartLast changeReading
SpecificationVersion 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 package2.2.3, December 31, 2022No release in almost four years
Library sourceMerges on main through October 29, 2026; open pull requests updated November 29Active work toward 3.0.0, not yet released
Test suitePushed February 20, 2026Not 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 require hooks; stringify throws on BigInt and on an invalid quote option
  • No more console warnings when U+2028 or U+2029 is parsed inside a string
  • An opt-in bigint parse 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.

Team icon

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.

PersonCredited contributionSource
Aseem KishoreFounder and first implementationREADME
Jordan TuckerSpecification, rewrite, ongoing maintenanceREADME
Max NanasyEarly patches and ideas, including hexadecimal and leading-point numbersREADME, changelog
Andrew EisenbergThe original stringifyREADME, changelog
Douglas CrockfordJSON itself, and the parser the first version was modeled onREADME
Michael BolinIndependent, earlier publication of similar ideasREADME
@pepkin88, @rowanhillInfinity and NaNChangelog
@MidarFixes to decimal points and newlines in stringsChangelog
@amb26Line and column numbers in errorsChangelog
Daniel FreyProposed ABNF grammar for the specificationSpec commits
Jonathan GregsonReported the 2022 vulnerabilityChangelog
Vladyslav Kaplin, James Garbutt and others2026 packaging, fixes and performance workCommit history

How decisions get made

The project lives in the GitHub logo 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 reportWhere it goes
A problem or idea about the data formatjson5/json5-spec issues
A bug or feature in the JavaScript libraryjson5/json5 issues
A security vulnerabilityA private advisory draft, per the security policy; never a public issue
A bug in another language's libraryThat 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".

Table icon

JSON5 Timeline

DateEventKind
2006-07RFC 4627 describes JSONBackground
2011-04-06Michael Bolin publishes his suggested JSON improvementsBackground
2011-06ECMAScript 5.1Background
2012-05-27Repository created; 0.0.0 and the first JSON5 parserRelease
2012-05-28Show HN postCommunity
2012-06-030.1.0Release
2013-01-270.2.0Release
2014-11-010.4.0 adds stringifyRelease
2015Babel reads .babelrc with JSON5Adoption
2016-030.5.0; specification started; GitHub organization createdProject
2016-11-270.5.1Release
2018-03-11Library 1.0.0 and specification 1.0.0Release
2018-03-171.0.1Release
2018-08-162.0.0, the native ES5 rewriteRelease
2018-08 to 2020-042.0.1, 2.1.0, 2.1.1, 2.1.2, 2.1.3Release
2019pnpm, JupyterLab and Babel 7.7.0 adoptionAdoption
2021-01-312.2.0 bundles TypeScript typesRelease
2021-09-20iOS 15Adoption
2022-03-212.2.1Release
2022-08-07Kishore's ten-year retrospectiveCommunity
2022-12-162.2.2 fixes the prototype pollution flawSecurity
2022-12-30 / 311.0.2 backport, then 2.2.3Release
2023-05-16SQLite 3.42.0Adoption
2023-11-12shared-mime-info 2.4Adoption
2026-01-27Bun 1.3.7Adoption
2026-10Version 3.0.0 development on mainProject
Question icon

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)
  1. json5/json5 CHANGELOG.md
  2. json5/json5 README.md
  3. npm registry record for json5
  4. npm downloads, November 22 to 28, 2026
  5. Aseem Kishore, ten-year retrospective on JSON5 (August 7, 2022)
  6. Hacker News: Show HN: JSON5
  7. Michael Bolin, Suggested Improvements to JSON (April 6, 2011), Internet Archive copy
  8. The JSON5 Data Interchange Format 1.0.0
  9. json5-spec commit history
  10. json5-spec releases
  11. json5-spec v1.1.0 branch, compared with master
  12. json5 closed milestones
  13. json5-tests
  14. GitHub contributors list for json5/json5
  15. RFC 7159
  16. json5-spec issues (#4, #15, #37, #56)
  17. json5 issue #3, date support
  18. json5 issue #36, negative hexadecimal literals
  19. json5 issue #91, regular expressions
  20. json5 issue #190, consolidating human-readable JSON efforts
  21. json5 issue #199, __proto__ handling
  22. json5 issue #295, prototype pollution report
  23. json5 pull request #298, v1 backport
  24. json5 issue #299, npm latest tag
  25. NVD: CVE-2022-46175
  26. GitHub Advisory GHSA-9c47-m6qq-7p4h
  27. json5 pull request #370, version 3 packaging
  28. json5 issue #424, version 3.0.0 release status
  29. Prettier pull request #19843
  30. The json5 GitHub organization
  31. JSON5 security policy
  32. json5 license
  33. JSON5 wiki: In the Wild
  34. RFC 4627
  35. RFC 8259
  36. ECMA-404
  37. ECMA-262 Edition 5.1
  38. Babel 5 changelog
  39. Babel: Config Files
  40. pnpm pull request #1799
  41. JupyterLab changelog (1.0)
  42. Apple: JSONDecoder.allowsJSON5
  43. Apple Newsroom: iOS 15 is available
  44. SQLite 3.42.0 release log
  45. SQLite JSON functions
  46. shared-mime-info merge request 257
  47. Bun v1.3.7 announcement
  48. WebStorm: JSON
  49. Fuchsia: component manifests
  50. OpenHarmony: module.json5 configuration file
  51. Renovate: configuration options

Last reviewed: November 29, 2026.