# Who Uses JSON5? Projects and Platforms | JSON5.dev


Source: https://json5.dev/who-uses-json5/

---

# Adopters: Who Uses JSON5

Platforms, tools and projects that read it, graded by how directly they do, with sources.

JSON5 shows up in operating system APIs, a database engine, JavaScript runtimes, mobile app build files, bots and editors. Those are not the same kind of adoption, so this page separates native support, an optional config file and a parser used behind the scenes.

Every entry links to documentation or source checked on November 29, 2026. Download figures come from the npm registry API the same day. A short test file further down shows how to prove what a tool accepts.

![A wall map connecting a json5 document to a phone, a database, a browser build and bot settings](https://json5.dev/img/hero/who-uses-json5.png)

**TL;DR:** Apple Foundation, SQLite, Bun and Dyalog APL accept JSON5 natively. pnpm, Renovate, Tauri, electron-builder and OpenHarmony apps can be configured with it. Babel and Next.js parse certain JSON-named files with a JSON5 parser. The npm package `json5` had 303,643,299 downloads from November 22 to 28, 2026, mostly a sign of how many tools depend on it.

[How to Read](#levels) [At a Glance](#table) [Native Support](#native) [Config Files](#config) [Used Inside](#inside) [npm Downloads](#downloads) [Test a Tool](#confirm) [What Is Left Out](#dropped) [FAQ](#faq) [Sources](#references)

![Layers icon](https://json5.dev/images/icons/layers.png)

## Three Kinds of Adoption

"Supports JSON5" can mean very different things. The labels below are used throughout.

![Diagram titled Three Kinds of JSON5 Adoption: native support in Apple Foundation, SQLite, Bun and Dyalog APL; configured in JSON5 for pnpm, Renovate, Tauri and electron-builder; parsed with a JSON5 library by Babel, Next.js, textlint and Expo](https://json5.dev/img/sections/who-uses-json5-map.png)

Label

Meaning

What it does not promise

**Native support**

The product itself accepts JSON5 through its API, language or editor, with no add-on

That every file the product reads may use it

**Config file option**

You can write a particular settings or manifest file in JSON5

That other files of the same product accept it

**Parser used inside**

The code calls a JSON5 library to read something, often a file named `.json`

That this is a supported, stable feature you should rely on

A package listing `json5` in its dependencies proves only that the library is installed, not which files go through it. Where this page says what is parsed, that comes from documentation or the source file linked. The community ["In the Wild" wiki page](https://github.com/json5/json5/wiki/In-the-Wild) and the [project README](https://github.com/json5/json5#readme) were used as leads, then checked against each project.

![Table icon](https://json5.dev/images/icons/table.png)

## Adoption at a Glance

Who

Level

What JSON5 is used for

Source

Apple Foundation

Native support

Decoding and deserializing JSON5 text

[Apple docs](https://developer.apple.com/documentation/foundation/jsondecoder/allowsjson5)

SQLite

Native support

Input to the built-in JSON functions

[SQLite docs](https://www.sqlite.org/json1.html)

Bun

Native support

Importing `.json5` files; `Bun.JSON5` API

[Bun docs](https://bun.com/docs/runtime/json5)

Dyalog APL

Native support

A `⎕JSON` dialect and `.dcfg` configuration files

[Dyalog docs](https://docs.dyalog.com/20.0/language-reference-guide/system-functions/json/)

Altova XMLSpy

Native support

Editing documents and validating them against JSON Schema

[Altova manual](https://www.altova.com/manual/XMLSpy/spyenterprise/xsjson.html)

WebStorm

Native support

Editing `.json5` files

[JetBrains help](https://www.jetbrains.com/help/webstorm/json.html)

Parcel

Native support

Importing `.json5` files into JavaScript

[Parcel docs](https://parceljs.org/languages/json/)

pnpm

Config file option

`package.json5` manifest

[pnpm docs](https://pnpm.io/package_json)

Renovate

Config file option

`renovate.json5` and `.renovaterc.json5`

[Renovate docs](https://docs.renovatebot.com/configuration-options/)

Tauri

Config file option

`tauri.conf.json5`, behind a feature flag

[Tauri docs](https://v2.tauri.app/develop/configuration-files/)

electron-builder

Config file option

Packaging configuration

[electron-builder docs](https://www.electron.build/docs/configuration)

OpenHarmony

Config file option

`app.json5`, `module.json5`, `oh-package.json5`

[OpenHarmony docs](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/module-configuration-file.md)

Fuchsia

Config file option

`.cml` component manifest sources, which are JSON5

[Fuchsia docs](https://fuchsia.dev/fuchsia-src/concepts/components/v2/component_manifests)

Chromium (Blink)

Config file option

Internal build inputs that generate C++ code

[Generator source](https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/build/scripts/json5_generator.py)

OpenClaw

Config file option

Its configuration file, named `openclaw.json`

[OpenClaw docs](https://docs.openclaw.ai/gateway/configuration)

Cloth Config (Minecraft mods)

Config file option

Mod config files, when a mod picks the Jankson serializer

[Serializer source](https://github.com/shedaniel/cloth-config/blob/HEAD/common/src/main/java/me/shedaniel/autoconfig/serializer/JanksonConfigSerializer.java)

JupyterLab

Config file option

User settings files written by the settings editor

[JupyterLab docs](https://github.com/jupyterlab/jupyterlab/blob/main/docs/source/user/directories.md)

i18next-fs-backend

Config file option

Translation resource files

[README](https://github.com/i18next/i18next-fs-backend#readme)

UnJS c12

Config file option

A config loader that accepts `.json5` files

[README](https://github.com/unjs/c12#readme)

Babel

Parser used inside

`babel.config.json`, `.babelrc`, `.babelrc.json`

[Babel docs](https://babeljs.io/docs/config-files)

Next.js

Parser used inside

`jsconfig.json`, JSON PostCSS configs and JSON Babel configs

[Source](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/load-jsconfig.ts)

textlint (via rc-config-loader)

Parser used inside

JSON and extensionless rc files

[Loader README](https://github.com/azu/rc-config-loader#readme)

ESLint JSON plugin, Prettier, webpack, json5format

Tooling

Linting, formatting and loading `.json5` files

[ESLint plugin README; others below](https://github.com/eslint/json#readme)

![Rocket icon](https://json5.dev/images/icons/rocket.png)

## Native Support in Platforms and Products

![iOS logo](https://json5.dev/images/tech/ios.png)

### Apple Foundation

Foundation has two switches: `JSONDecoder.[allowsJSON5](https://developer.apple.com/documentation/foundation/jsondecoder/allowsjson5)` and the `JSONSerialization` reading option [`json5Allowed`](https://developer.apple.com/documentation/foundation/jsonserialization/readingoptions/json5allowed). Apple lists both as available from iOS 15, iPadOS 15, Mac Catalyst 15, macOS 12, tvOS 15, watchOS 8 and visionOS 1. Support is opt-in, so a decoder with default settings still expects standard JSON. Apple also notes that the custom attribute syntax in `AttributedString` Markdown, the part inside the parentheses, is JSON5. In the open source [swift-foundation](https://github.com/swiftlang/swift-foundation/blob/main/Sources/FoundationEssentials/JSON/JSONDecoder.swift) decoder, JSON5 goes through a separate scanner so ordinary JSON decoding keeps its speed.

`let decoder = JSONDecoder() decoder.allowsJSON5 = true let settings = try decoder.decode(Settings.self, from: data)`

![SQLite logo](https://json5.dev/images/tech/sqlite.png)

### SQLite

Since [version 3.42.0 (May 16, 2023)](https://www.sqlite.org/releaselog/3_42_0.html), the [JSON functions](https://www.sqlite.org/json1.html) read JSON5. Text they generate is always standard JSON, so `json()` doubles as a converter. `json_valid(X)` with no flag still returns false for JSON5-only syntax; pass `2` as a second argument to test for it. That argument arrived later, in [version 3.45.0 (January 15, 2024)](https://www.sqlite.org/releaselog/3_45_0.html). `json_error_position()` returns 0 for text it can read, JSON5 included, and otherwise the position of the first syntax error.

`SELECT json_valid('{half: .5}'); -- 0 SELECT json_valid('{half: .5}', 2); -- 1 SELECT json('{half: .5, list: [1,],}'); -- {"half":0.5,"list":[1]}`

SQLite documents its own deviations. It allows more characters in unquoted keys, accepts `Inf`, `QNaN` and `SNaN` in any letter case, treats the NaN spellings as `null`, and rejects `+NaN` and `-NaN`. In tests on SQLite 3.50.4 and 3.53.4, `json('{a:Infinity}')` returned `{"a":9e999}`.

![Bun logo](https://json5.dev/images/tech/bun.svg)

### Bun

[Bun 1.3.7](https://bun.com/blog/bun-v1.3.7), released in January 2026, added `Bun.JSON5.parse()`, `Bun.JSON5.stringify()` and direct imports of `.json5` files. According to the [Bun documentation](https://bun.com/docs/runtime/json5), its parser passes the whole official JSON5 test suite, and `bun build` parses imported files at build time. That conformance figure is the vendor's claim; it was not re-run for this page.

### Dyalog APL

The [`⎕JSON` system function](https://docs.dyalog.com/20.0/language-reference-guide/system-functions/json/) has a Dialect option, `'JSON'` by default or `'JSON5'`, which enables the extensions on both import and export. Dyalog's [configuration files](https://docs.dyalog.com/20.0/unix-installation-and-configuration-guide/configuration-parameters/configuration-files/) (`.dcfg`) are defined using JSON5 syntax.

### Editors and bundlers

-   **Altova XMLSpy:** the [manual](https://www.altova.com/manual/XMLSpy/spyenterprise/xsjson.html) says features available for JSON instance documents are also available for JSON5 ones, that `.json5` files are treated as JSON5, and that they can be validated against JSON Schema. Altova [announced support across several products in June 2017](https://www.altova.com/blog/2017/06/support-for-json5-in-altova-missionkit-server-products-and-mobiletogether).
-   **WebStorm:** [recognizes JSON5](https://www.jetbrains.com/help/webstorm/json.html) and by default treats the `.json5` extension that way. See the [JetBrains guide](https://json5.dev/tools/jetbrains/).
-   **Parcel:** [imports JSON and JSON5 out of the box](https://parceljs.org/languages/json/). Its [JSON transformer](https://github.com/parcel-bundler/parcel/blob/v2/packages/transformers/json/src/JSONTransformer.js) calls the `json5` library and emits ordinary JavaScript.
-   **GitHub:** the Linguist library that classifies repository files [lists JSON5 as a data language](https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml). That covers recognition and highlighting only.

![Settings icon](https://json5.dev/images/icons/settings.png)

## Tools That Let You Configure Them in JSON5

![pnpm logo](https://json5.dev/images/tech/pnpm.png)

### pnpm

pnpm accepts [`package.json5`](https://pnpm.io/package_json) (and `package.yaml`) as a project manifest. npm itself requires `package.json` to be [actual JSON](https://docs.npmjs.com/cli/v11/configuring-npm/package-json), so a project that adopts the JSON5 manifest ties its contributors to tools that read it.

![Renovate logo](https://json5.dev/images/tech/renovate.png)

### Renovate

Renovate searches for `renovate.json5`, copies under `.github/` and `.gitlab/`, and `.renovaterc.json5`, alongside JSON and JSONC names. Its documentation [recommends `.jsonc`](https://docs.renovatebot.com/configuration-options/) if you want comments, and warns that its automated config migration can turn JSON5 into plain JSON and remove comments. In the [parsing code](https://github.com/renovatebot/renovate/blob/main/lib/util/common.ts), a file whose name ends in neither `.jsonc` nor `.json5` is read as JSONC first; if that fails but a JSON5 parse succeeds, it is accepted with a warning that this fallback will be removed.

### Desktop and mobile app builds

-   **Tauri:** JSON is the default. The [configuration guide](https://v2.tauri.app/develop/configuration-files/) shows adding the `config-json5` feature to both `tauri` and `tauri-build`, and Tauri's [config parser](https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-utils/src/config/parse.rs) names the file `tauri.conf.json5`.
-   **electron-builder:** its [configuration docs](https://www.electron.build/docs/configuration) list JSON5 beside YAML, JSON, TOML and JavaScript or TypeScript formats, selectable with `--config`.
-   **OpenHarmony:** each project must contain [`app.json5`](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/app-configuration-file.md) and each module [`module.json5`](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/module-configuration-file.md); packages are described in [`oh-package.json5`](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/har-package.md). Build settings live in `build-profile.json5` files, which the same documentation refers to. Here the format is part of the platform's project layout, not an alternative.
-   **Fuchsia:** Google's operating system describes software components in component manifest language (CML). Its [documentation](https://fuchsia.dev/fuchsia-src/concepts/components/v2/component_manifests) says CML files are JSON5 files ending in `.cml`, compiled to a binary manifest by the `cmc` tool during the build. Each file holds a single object, described key by key in the [CML reference](https://fuchsia.dev/reference/cml).

![Chrome logo](https://json5.dev/images/tech/chrome.png)

### Chromium

Blink, Chromium's rendering engine, keeps lists such as [`runtime_enabled_features.json5`](https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/platform/runtime_enabled_features.json5) as commented JSON5. A [generic generator script](https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/build/scripts/json5_generator.py), written in Python and importing a `json5` module, turns such files into code during the build. This is use inside the Chromium source tree. It is not a feature of the Chrome browser: web pages still get only `JSON.parse`.

### Apps and libraries

-   **OpenClaw:** reads an [optional JSON5 configuration](https://docs.openclaw.ai/gateway/configuration) from `~/.openclaw/openclaw.json`.
-   **Cloth Config:** its [Jankson serializer](https://github.com/shedaniel/cloth-config/blob/HEAD/common/src/main/java/me/shedaniel/autoconfig/serializer/JanksonConfigSerializer.java) writes `.json5` files into the game's config folder. [Jankson](https://github.com/falkreon/Jankson) supports JSON5 syntax plus several Hjson features, and mods may choose a different serializer.
-   **JupyterLab:** the settings editor [creates JSON5 files](https://github.com/jupyterlab/jupyterlab/blob/main/docs/source/user/directories.md) named like `plugin_name.jupyterlab-settings`, and the [settings registry](https://github.com/jupyterlab/jupyterlab/blob/main/packages/settingregistry/src/settingregistry.ts) parses them with the `json5` library.
-   **i18next-fs-backend:** lists `.json5` among its [translation file formats](https://github.com/i18next/i18next-fs-backend#readme).
-   **c12:** the UnJS [configuration loader](https://github.com/unjs/c12#readme) reads `.json5` through the `confbox` package. A framework built on c12 does not necessarily advertise that file name, so check its own docs.

![Code icon](https://json5.dev/images/icons/code.png)

## Tools That Parse With a JSON5 Library

These tools do not ask you to name a file `.json5`. They use a JSON5 parser so that comments or other relaxed syntax work in files they already read.

![Babel logo](https://json5.dev/images/tech/babel.png)

### Babel

The [Babel documentation](https://babeljs.io/docs/config-files) says `babel.config.json` and `.babelrc.json` are parsed as JSON5, supported since version 7.7.0. In the [loader source](https://github.com/babel/babel/blob/main/packages/babel-core/src/config/files/configuration.ts), every config extension other than the JavaScript and TypeScript ones goes to the JSON5 reader, which covers a bare `.babelrc`. The list of file names searched has no `.json5` variant. See the [Babel guide](https://json5.dev/config/babel/).

![Next.js logo](https://json5.dev/images/tech/nextjs.png)

### Next.js

The community wiki marks this one with a question mark, so it was checked in source on the canary branch. [`parseJsonFile`](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/load-jsconfig.ts) reads `jsconfig.json` with a bundled JSON5 parser. `tsconfig.json` does not take that path: it goes through the [TypeScript tooling](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/typescript/getTypeScriptConfiguration.ts), and a separate helper that reads path aliases uses [the `comment-json` library](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/typescript/loadTsConfig.ts). The [config finder](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/find-config.ts) parses JSON config files with the JSON5 parser, and the [webpack CSS setup](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/webpack/config/blocks/css/plugins.ts) uses that finder for PostCSS (`.postcssrc.json`, `postcss.config.json`). The [Babel loader](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/babel/loader/get-config.ts) does the same for `.babelrc` and JSON Babel configs. None of this makes `next.config.json5` a supported file. See the [Next.js guide](https://json5.dev/config/nextjs/).

### textlint and Expo

[`rc-config-loader`](https://github.com/azu/rc-config-loader#readme) documents that it reads `.json` rc files as JSON5. The current [`@textlint/config-loader`](https://registry.npmjs.org/@textlint/config-loader/latest) package depends on it. Expo's [`@expo/json-file`](https://github.com/expo/expo/blob/main/packages/@expo/json-file/src/JsonFile.ts) depends on `json5` and offers a `json5` option that is off by default, so installing it does not mean Expo reads every file that way.

### Linting, formatting and bundling

-   **ESLint:** the official [`@eslint/json`](https://github.com/eslint/json#readme) plugin has a `json/json5` language and requires ESLint 9.15.0 or later. It is an add-on.
-   **Prettier:** has a built-in [`json5` parser](https://prettier.io/docs/options#parser), available since 1.13.0.
-   **webpack:** the [asset management guide](https://webpack.js.org/guides/asset-management/) shows loading `.json5` files through a custom parser that calls `json5.parse`. You install and configure it.
-   **json5format:** Google publishes this [Rust library](https://github.com/google/json5format) for formatting JSON5 while preserving line and block comments, with an example command line tool called `formatjson5`.

The [configuration guides](https://json5.dev/config/) cover more tools, including the many that accept only JSON or JSONC.

![npm logo](https://json5.dev/images/tech/npm.png)

## npm Download Figures

The npm registry API reports [303,643,299 downloads](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/json5) of the `json5` package for November 22 to 28, 2026, and [1,349,688,415](https://api.npmjs.org/downloads/point/2026-10-30:2026-11-28/json5) for October 30 to November 28. The project README cites more than 65 million a week as of 2022.

The table shows packages that bring in a JSON5 parser, with the version of the parent that was latest on November 29, 2026. Weekly downloads belong to the parent package across all its versions. The download links use fixed date ranges, so they keep pointing at the same period.

Package (version checked)

Declared `json5` range

Downloads, Nov 22-28

[`@babel/core`](https://registry.npmjs.org/@babel/core/latest) 8.1.4

`^2.2.3`

[249,599,787](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@babel/core)

[`tsconfig-paths`](https://registry.npmjs.org/tsconfig-paths/latest) 4.2.0

`^2.2.2`

[147,629,681](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/tsconfig-paths)

[`next`](https://registry.npmjs.org/next/latest) 16.4.6

Compiled copy inside the package

[83,733,861](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/next)

[`@expo/json-file`](https://registry.npmjs.org/@expo/json-file/latest) 11.2.1

`^2.2.3`

[34,182,530](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@expo/json-file)

[`app-builder-lib`](https://registry.npmjs.org/app-builder-lib/latest) (electron-builder) 26.18.0

`^2.2.3`

[9,312,265](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/app-builder-lib)

[`@parcel/transformer-json`](https://registry.npmjs.org/@parcel/transformer-json/latest) 2.16.4

`^2.2.3`

[983,307](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@parcel/transformer-json)

[`renovate`](https://registry.npmjs.org/renovate/latest) 45.4.0

`2.2.3`

[625,348](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/renovate)

[`@jupyterlab/settingregistry`](https://registry.npmjs.org/@jupyterlab/settingregistry/latest) 4.6.6

`^2.2.3`

[207,036](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@jupyterlab/settingregistry)

[`@pnpm/workspace.project-manifest-reader`](https://registry.npmjs.org/@pnpm/workspace.project-manifest-reader/latest) 1100.1.8

`^2.2.3`

[36,975](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@pnpm/workspace.project-manifest-reader)

-   A download is not a user. Continuous integration, mirrors and repeated installs all count.
-   The rows overlap, and one install of a project may pull several of them, so do not add them up.
-   The `json5` range proves a declared dependency in that version only. For `loader-utils`, the 1.4.2 and 2.0.4 releases depend on `json5` while 3.3.1 does not.
-   Non-JavaScript use, such as Apple Foundation or SQLite, never appears in npm figures.

To find out why `json5` is in your own project, ask npm. Update old copies: versions before 1.0.2, and 2.0.0 up to 2.2.1, are affected by CVE-2022-46175, covered in the [security guide](https://json5.dev/tutorials/security/).

`npm ls json5 npm explain json5`

![PostgreSQL logo](https://json5.dev/images/tech/postgresql.png)

## PostgreSQL: A Proposal, Not a Feature

PostgreSQL does not accept JSON5 today. There is a proposal to change that: "Proposal: JSON5 support in the JSON parsers", sent to the [pgsql-hackers mailing list](https://www.postgresql.org/message-id/flat/CAN4CZFP5dvO4sij414YYG+4Hghf3M5m2oPiyR_vNgRj3vhQ_0Q%40mail.gmail.com) by Zsolt Parragi on 07-14-2026. A second version (v2) followed on 10-01-2026.

The author describes a series of eight patches that add one JSON5 feature at a time to the JSON lexer and parser: comments, [trailing commas](https://json5.dev/glossary/#trailing-comma), unquoted keys, single-quoted strings, number extensions (hexadecimal, `Infinity`, `NaN`), and multi-line strings. The last code patch adds a separate `json5` SQL data type with casts to `json` and `jsonb`, and the thread says that patch can be skipped. The thread does not describe a change to how the existing `json` and `jsonb` types parse standard JSON.

On the [commitfest entry](https://commitfest.postgresql.org/61/7021/) (patch 7021), the status read "Needs review" in the PG20-3 commitfest when we checked on 12-01-2026. Tristan Partin is listed as reviewer, and no committer is listed. This is a proposal under discussion. It is not in any PostgreSQL release.

![Test icon](https://json5.dev/images/icons/test.png)

## Does a Tool Accept JSON5 or Only JSONC?

JSONC means JSON with comments. The [JSONC specification](https://jsonc.org/) adds comments, says parsers may support trailing commas, and recommends the `.jsonc` extension. Unquoted keys, single quotes and hexadecimal numbers are JSON5 territory. A file with comments that loads fine tells you very little.

### Results from real parsers

Each probe below was a one-line input, run locally with the JSON5 library 2.2.3, Microsoft's [`jsonc-parser`](https://github.com/microsoft/node-jsonc-parser) 3.3.1 (trailing commas disallowed, its default, and then allowed), the TypeScript 5.9.3 config parser and `JSON.parse`. Compiling a `tsconfig.json` containing each probe with `tsc` 5.9.3, 6.0.3 and 7.0.2 gave the same accept or reject result.

Probe

`JSON.parse`

jsonc-parser default

jsonc-parser, trailing allowed

TypeScript config

JSON5

`/* comment */`

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

Trailing comma

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

Unquoted key

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

Single-quoted string

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

`0x1F`

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

`.5`

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

`+1`

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

`Infinity`

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

String continued with a backslash

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![No](https://json5.dev/images/icons/no.png)

![Yes](https://json5.dev/images/icons/yes.png)

![Yes](https://json5.dev/images/icons/yes.png)

The TypeScript column is the warning here. Its config parser let hex numbers, a [leading](https://json5.dev/glossary/#leading-decimal-point) decimal point and [line continuations](https://json5.dev/glossary/#line-continuation) through while rejecting unquoted keys, single quotes, a plus sign and `Infinity`. A single probe can therefore mislead you; use several. These are parser results for those versions, not a promise about every tool that reads `tsconfig.json`.

### A canary file

Put this in the file the tool reads, adapted to keys it will tolerate, and change a value so you can see that it took effect:

`{ // 1: comment unquoted: 'single', hex: 0x10, half: .5, plus: +1, }`

-   **It loads and the values apply:** the file goes through JSON5 or something at least as lenient.
-   **It fails on `unquoted` or the single quotes:** treat the tool as JSON or JSONC.
-   **It "loads" but nothing changes:** the tool may have skipped the file or swallowed the error. Check logs, and confirm the file name is one it searches.
-   **It also accepts things outside JSON5** (backticks, `#` comments, missing commas): the parser is a different relaxed format. Keep to standard JSON5 so the file stays portable.

Then confirm in this order: the documentation names JSON5 (not just "comments allowed"); the source or lockfile shows which parser reads that exact file; the test passes on the version you ship. For SQLite 3.45.0 or later, the test is one query: `SELECT json_valid(?, 2)`. Validate the canary itself first with the [online validator](https://json5.dev/tools/online-validator/).

The specification allows a parser to accept forms beyond JSON5. SQLite does, and so does Jankson. "My tool loaded it" does not prove the file is valid JSON5.

![Warning icon](https://json5.dev/images/icons/warning.png)

## Claims Left Out or Narrowed

Adoption lists tend to grow by copying each other. This is what did not make the table as commonly stated.

Claim seen elsewhere

Treatment here

Next.js uses it for config files

Narrowed to the files shown in source, which do not include `tsconfig.json`; no `.json5` config name

Retool has adopted it

Left out: the README cites a community forum thread, not product documentation

Visual Studio Code supports it

Left out: the [built-in JSON extension](https://github.com/microsoft/vscode/blob/main/extensions/json/package.json) does not claim `.json5`, so it needs an extension (see [the guide](https://json5.dev/tools/vscode/))

ProStyle and older libraries on the wiki

Left out: current behavior was not verified

Chromium means the browser supports it

Narrowed to build files in the source tree

Absence from this page is not proof that a project does not use JSON5. For parsers by language, see the [implementations directory](https://json5.dev/implementations/); for the format's formal position, see [standards status](https://json5.dev/standards/).

### Choosing it for your own project

Much of the table is configuration that people edit by hand, and several platforms that accept JSON5 still default to strict JSON: SQLite always writes it, Tauri's default format is JSON, and Dyalog's default dialect is `'JSON'`. Adopt JSON5 for files people maintain, keep strict JSON for data exchange, and check that every tool in the chain reads the file. [Why use it](https://json5.dev/why/) and [the format comparison](https://json5.dev/compare/) go further.

![Question icon](https://json5.dev/images/icons/question.png)

## Common questions

### Do web browsers parse JSON5?

No built-in browser function does. Use a library, as the [JavaScript guide](https://json5.dev/javascript/) shows.

### Does Node.js support it natively?

Add the `json5` package; `JSON.parse` accepts standard JSON only. The [Node.js guide](https://json5.dev/nodejs/) covers loading files.

### Is `tsconfig.json` a JSON5 file?

Not as a format. It tolerates comments and trailing commas, and the table above shows TypeScript 5.9.3 rejecting unquoted keys and single quotes. Other tools may read it with their own parser, so test the exact tool. See [the tsconfig guide](https://json5.dev/config/tsconfig/).

### Why are the download numbers so high?

The package sits deep in common JavaScript build chains, so it is installed even by people who never write a JSON5 file.

### Can I assume a tool will keep supporting it?

No. Support can be narrowed, as the Renovate fallback warning for mislabeled files shows. Rely on documented file names and test after upgrades.

## Related pages

[

![Document icon](https://json5.dev/images/icons/document.png)

### The .json5 File

Open, convert, validate and serve one.

](https://json5.dev/json5-file/)[

![History icon](https://json5.dev/images/icons/history.png)

### History

How the format spread since 2012.

](https://json5.dev/history/)[

![Code icon](https://json5.dev/images/icons/code.png)

### Implementations

Libraries by programming language.

](https://json5.dev/implementations/)[

![Settings icon](https://json5.dev/images/icons/settings.png)

### Configuration Guides

What each popular tool really accepts.

](https://json5.dev/config/)

## Sources

(82)

1.  [The JSON5 Data Interchange Format, 1.0.0](https://spec.json5.org/)
2.  [json5/json5 README](https://github.com/json5/json5#readme)
3.  [json5 wiki: In the Wild](https://github.com/json5/json5/wiki/In-the-Wild)
4.  [Apple: JSONDecoder.allowsJSON5](https://developer.apple.com/documentation/foundation/jsondecoder/allowsjson5)
5.  [Apple: JSONSerialization.ReadingOptions.json5Allowed](https://developer.apple.com/documentation/foundation/jsonserialization/readingoptions/json5allowed)
6.  [swift-foundation: JSONDecoder.swift](https://github.com/swiftlang/swift-foundation/blob/main/Sources/FoundationEssentials/JSON/JSONDecoder.swift)
7.  [SQLite: JSON functions and operators](https://www.sqlite.org/json1.html)
8.  [SQLite release 3.42.0](https://www.sqlite.org/releaselog/3_42_0.html)
9.  [SQLite release 3.45.0](https://www.sqlite.org/releaselog/3_45_0.html)
10.  [Bun docs: JSON5](https://bun.com/docs/runtime/json5)
11.  [Bun 1.3.7 release post](https://bun.com/blog/bun-v1.3.7)
12.  [Dyalog: JSON Convert](https://docs.dyalog.com/20.0/language-reference-guide/system-functions/json/)
13.  [Dyalog: configuration files](https://docs.dyalog.com/20.0/unix-installation-and-configuration-guide/configuration-parameters/configuration-files/)
14.  [Altova XMLSpy manual: JSON and JSON5](https://www.altova.com/manual/XMLSpy/spyenterprise/xsjson.html)
15.  [Altova blog: support for JSON5](https://www.altova.com/blog/2017/06/support-for-json5-in-altova-missionkit-server-products-and-mobiletogether)
16.  [WebStorm help: JSON](https://www.jetbrains.com/help/webstorm/json.html)
17.  [Parcel docs: JSON](https://parceljs.org/languages/json/)
18.  [Parcel JSON transformer source](https://github.com/parcel-bundler/parcel/blob/v2/packages/transformers/json/src/JSONTransformer.js)
19.  [GitHub Linguist languages.yml](https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml)
20.  [VS Code built-in JSON extension manifest](https://github.com/microsoft/vscode/blob/main/extensions/json/package.json)
21.  [pnpm docs: package.json](https://pnpm.io/package_json)
22.  [npm docs: package.json](https://docs.npmjs.com/cli/v11/configuring-npm/package-json)
23.  [Renovate docs: configuration options](https://docs.renovatebot.com/configuration-options/)
24.  [Renovate source: lib/util/common.ts](https://github.com/renovatebot/renovate/blob/main/lib/util/common.ts)
25.  [Tauri docs: configuration files](https://v2.tauri.app/develop/configuration-files/)
26.  [Tauri source: config/parse.rs](https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-utils/src/config/parse.rs)
27.  [electron-builder docs: configuration](https://www.electron.build/docs/configuration)
28.  [OpenHarmony docs: app.json5](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/app-configuration-file.md)
29.  [OpenHarmony docs: module.json5](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/module-configuration-file.md)
30.  [OpenHarmony docs: HAR package](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/har-package.md)
31.  [Chromium: runtime\_enabled\_features.json5](https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/platform/runtime_enabled_features.json5)
32.  [Chromium: json5\_generator.py](https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/build/scripts/json5_generator.py)
33.  [Fuchsia docs: component manifests](https://fuchsia.dev/fuchsia-src/concepts/components/v2/component_manifests)
34.  [Fuchsia: component manifest (.cml) reference](https://fuchsia.dev/reference/cml)
35.  [google/json5format](https://github.com/google/json5format)
36.  [OpenClaw docs: configuration](https://docs.openclaw.ai/gateway/configuration)
37.  [Cloth Config: JanksonConfigSerializer source](https://github.com/shedaniel/cloth-config/blob/HEAD/common/src/main/java/me/shedaniel/autoconfig/serializer/JanksonConfigSerializer.java)
38.  [falkreon/Jankson](https://github.com/falkreon/Jankson)
39.  [JupyterLab docs: directories](https://github.com/jupyterlab/jupyterlab/blob/main/docs/source/user/directories.md)
40.  [JupyterLab: settingregistry.ts](https://github.com/jupyterlab/jupyterlab/blob/main/packages/settingregistry/src/settingregistry.ts)
41.  [i18next-fs-backend README](https://github.com/i18next/i18next-fs-backend#readme)
42.  [unjs/c12 README](https://github.com/unjs/c12#readme)
43.  [Babel docs: configuration files](https://babeljs.io/docs/config-files)
44.  [Babel source: configuration.ts](https://github.com/babel/babel/blob/main/packages/babel-core/src/config/files/configuration.ts)
45.  [Next.js source: load-jsconfig.ts](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/load-jsconfig.ts)
46.  [Next.js source: find-config.ts](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/find-config.ts)
47.  [Next.js source: CSS plugins.ts](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/webpack/config/blocks/css/plugins.ts)
48.  [Next.js source: getTypeScriptConfiguration.ts](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/typescript/getTypeScriptConfiguration.ts)
49.  [Next.js source: loadTsConfig.ts](https://github.com/vercel/next.js/blob/canary/packages/next/src/lib/typescript/loadTsConfig.ts)
50.  [Next.js source: Babel loader get-config.ts](https://github.com/vercel/next.js/blob/canary/packages/next/src/build/babel/loader/get-config.ts)
51.  [azu/rc-config-loader README](https://github.com/azu/rc-config-loader#readme)
52.  [npm registry: @textlint/config-loader](https://registry.npmjs.org/@textlint/config-loader/latest)
53.  [Expo source: JsonFile.ts](https://github.com/expo/expo/blob/main/packages/@expo/json-file/src/JsonFile.ts)
54.  [eslint/json README](https://github.com/eslint/json#readme)
55.  [Prettier docs: parser option](https://prettier.io/docs/options#parser)
56.  [webpack guide: asset management](https://webpack.js.org/guides/asset-management/)
57.  [JSONC specification](https://jsonc.org/)
58.  [microsoft/node-jsonc-parser](https://github.com/microsoft/node-jsonc-parser)
59.  [npm downloads API: json5, November 22-28, 2026](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/json5)
60.  [npm downloads API: json5, October 30 to November 28, 2026](https://api.npmjs.org/downloads/point/2026-10-30:2026-11-28/json5)
61.  [npm registry: @babel/core](https://registry.npmjs.org/@babel/core/latest)
62.  [npm downloads API: @babel/core](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@babel/core)
63.  [npm registry: tsconfig-paths](https://registry.npmjs.org/tsconfig-paths/latest)
64.  [npm downloads API: tsconfig-paths](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/tsconfig-paths)
65.  [npm registry: next](https://registry.npmjs.org/next/latest)
66.  [npm downloads API: next](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/next)
67.  [npm registry: @expo/json-file](https://registry.npmjs.org/@expo/json-file/latest)
68.  [npm downloads API: @expo/json-file](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@expo/json-file)
69.  [npm registry: app-builder-lib](https://registry.npmjs.org/app-builder-lib/latest)
70.  [npm downloads API: app-builder-lib](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/app-builder-lib)
71.  [npm registry: @parcel/transformer-json](https://registry.npmjs.org/@parcel/transformer-json/latest)
72.  [npm downloads API: @parcel/transformer-json](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@parcel/transformer-json)
73.  [npm registry: renovate](https://registry.npmjs.org/renovate/latest)
74.  [npm downloads API: renovate](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/renovate)
75.  [npm registry: @jupyterlab/settingregistry](https://registry.npmjs.org/@jupyterlab/settingregistry/latest)
76.  [npm downloads API: @jupyterlab/settingregistry](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@jupyterlab/settingregistry)
77.  [npm registry: @pnpm/workspace.project-manifest-reader](https://registry.npmjs.org/@pnpm/workspace.project-manifest-reader/latest)
78.  [npm downloads API: @pnpm/workspace.project-manifest-reader](https://api.npmjs.org/downloads/point/2026-11-22:2026-11-28/@pnpm/workspace.project-manifest-reader)
79.  [npm registry: loader-utils](https://registry.npmjs.org/loader-utils)
80.  [NVD: CVE-2022-46175](https://nvd.nist.gov/vuln/detail/CVE-2022-46175)
81.  [PostgreSQL commitfest: Proposal: JSON5 support in the JSON parsers (patch 7021)](https://commitfest.postgresql.org/61/7021/)
82.  [pgsql-hackers thread: Proposal: JSON5 support in the JSON parsers](https://www.postgresql.org/message-id/flat/CAN4CZFP5dvO4sij414YYG+4Hghf3M5m2oPiyR_vNgRj3vhQ_0Q%40mail.gmail.com)

Last reviewed: November 29, 2026.
