# What Is a .json5 File? How to Open One | JSON5.dev


Source: https://json5.dev/json5-file/

---

# JSON5 File: What Is .json5?

A plain text data file: JSON that people can comment, read and edit by hand.

A `.json5` file holds settings or structured data in JSON5, a superset of JSON that borrows comments, unquoted keys, single quotes and trailing commas from ECMAScript 5.1. Any text editor opens it, and nothing in it runs when you do.

Below you will find an annotated sample, steps for Windows, macOS and Linux, editor support, media type facts, tested conversion and validation commands, server settings, and fixes for the errors that make a program reject the file.

![An open file drawer feeding a .json5 settings file into a text editor, a converter and a validator](https://json5.dev/img/hero/json5-file.png)

**TL;DR:** It is text. Open it in any editor. It is not strict JSON, so a plain JSON parser will reject most real JSON5 files. Convert one with `npx json5 -s 2 file.json5` (comments are lost), check one with `npx json5 -v file.json5`, and serve it as `application/json5`, a widely used but unregistered media type.

[What It Is](#what) [Sample File](#sample) [Open It](#open) [Editor Support](#editors) [MIME Type](#mime) [.json5 vs .json](#naming) [Programs](#programs) [Convert to JSON](#convert) [Validate](#validate) [Serve over HTTP](#http) [Troubleshooting](#troubleshooting) [FAQ](#faq) [Sources](#references)

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

## What the File Is

JSON5 began in 2012 as an extension of JSON meant to be easier to write and maintain by hand, mainly for configuration files. The [project README](https://github.com/json5/json5#readme) says it is not intended for machine-to-machine communication. The [specification](https://spec.json5.org/), version 1.0.0 from March 2018, describes itself as a proposed extension to JSON. Every valid JSON document is also a valid JSON5 document, but the reverse is not true.

Property

Value

Filename extension

`.json5`

Content

Plain text; one value, usually an object in braces

Based on

JSON, plus syntax taken from ECMAScript 5.1

Specification

1.0.0, March 2018

Media type in common use

`application/json5` (not registered with IANA)

Executable?

No. A parser reads it as data; there are no functions or expressions

GitHub language name

JSON5, matched by the `.json5` extension ([Linguist](https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml))

Receiving one usually means a build tool, an app or a game mod stores its settings that way. Read the file name and the top few keys first: they normally identify the program, and the [table of common programs](#programs) below lists the usual suspects. A safe file can still contain secrets such as API keys, so check the contents before you forward it.

**Do not "open" it by evaluating it as JavaScript.** The syntax looks like a JavaScript object, but feeding an unknown file to `eval` runs whatever code it holds. Use a parser. See the [security guide](https://json5.dev/tutorials/security/).

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

## A Sample .json5 File

This file, saved as `server.json5`, parses with version 2.2.3 of the reference JavaScript library. It is used for every command on this page.

`// server.json5 - settings for a small web service { name: 'inventory-api', port: 8080, /* Hex is handy for permission masks. */ fileMode: 0x1A4, timeoutSeconds: 2.5, retryBackoff: .25, maxPayload: +1048576, rateLimit: Infinity, banner: 'Inventory service \ ready', hosts: [ 'api.example.com', 'backup.example.com', // trailing comma is fine ], }`

In the sample

What it means

Allowed in JSON?

`//` and `/* */`

Comments, ignored by the parser

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

`name:`

Key without quotes; it must be a valid identifier name

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

`'inventory-api'`

Single-quoted string

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

`0x1A4`

Hexadecimal number, decimal 420

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

`.25`

Leading decimal point

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

`+1048576`

Explicit plus sign

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

`Infinity`

IEEE 754 infinity; `NaN` is allowed too

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

Backslash at end of a line

The string continues on the next line, with no newline added

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

Comma after the last item

Trailing comma, one per object or array

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

The full rules are in the [syntax reference](https://json5.dev/spec/syntax/) and the [data types page](https://json5.dev/spec/data-types/).

![Editor icon](https://json5.dev/images/icons/editor.png)

## How to Open It on Windows, macOS and Linux

You need a text editor, not a special viewer. Prefer an editor that writes plain UTF-8 and does not replace straight quotes with curly ones. Word processors are the wrong tool because they add formatting or save another format.

### Windows

Right-click the file, choose **Open with**, and pick Notepad, Notepad++, Visual Studio Code or another editor. To make the choice permanent, open **Settings > Apps > Default apps** and enter `.json5` in the file type search box, as described by [Microsoft Support](https://support.microsoft.com/en-us/windows/change-default-apps-in-windows-e5d82cad-17d1-c53b-3505-f10a32e1894d). A new extension may have no association at all: on the Windows 11 machine used to test this page, `assoc .json5` reported that none was found. From a terminal:

`notepad server.json5 Get-Content server.json5`

If you create or rewrite the file in Windows PowerShell 5.1, watch the encoding. Its `>` operator and `Out-File` [write UTF-16LE by default](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding?view=powershell-5.1), and a tool that reads the result as UTF-8 fails on the very first character. Pass `-Encoding utf8`, or use PowerShell 7.

### macOS

In Finder, Control-click the file and choose **Open With**, then pick an editor. To change the default for all such files, choose **Get Info**, select an app under "Open with", and click **Change All**. [Apple documents both steps](https://support.apple.com/guide/mac-help/choose-an-app-to-open-a-file-on-mac-mh35597/mac). If you use TextEdit, work in plain text mode and check that quotes you type stay straight.

### Linux

Any editor works: nano, Vim, Emacs, Kate, GNOME Text Editor or a graphical IDE. To set a default handler, ask the desktop what type it assigns, then point that type at an editor with [`xdg-mime`](https://portland.freedesktop.org/doc/xdg-mime.html):

`xdg-mime query filetype server.json5 xdg-mime default org.kde.kate.desktop application/json5`

Replace the desktop file name with your editor's. The `xdg-mime` manual notes that the application's desktop file must list the [media type](https://json5.dev/glossary/#media-type) it is asked to handle. The current upstream [shared-mime-info database](https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/data/freedesktop.org.xml.in) already defines `application/json5` for `*.json5`, but an older distribution release may not. If the query returns a generic type such as plain text, you can add a user-level type definition in the freedesktop shared MIME-info format:

`<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="application/json5"> <comment>JSON5 document</comment> <glob pattern="*.json5"/> </mime-type> </mime-info>`

`xdg-mime install --mode user example-json5.xml`

![Tools icon](https://json5.dev/images/icons/tools.png)

## Editor Support

Opening the file is easy. Getting correct colors and error markers depends on whether the editor knows JSON5, as opposed to JSON or JSON with Comments (JSONC).

Editor

.json5 out of the box

What to do

Guide

Visual Studio Code

No: the [built-in JSON extension](https://github.com/microsoft/vscode/blob/main/extensions/json/package.json) does not claim `.json5`

Install [Better JSON5](https://marketplace.visualstudio.com/items?itemName=BlueGlassBlock.better-json5) (highlighting, validation, formatting, schemas) or [JSON5 syntax](https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-json5) (highlighting)

[VS Code](https://json5.dev/tools/vscode/)

WebStorm and JetBrains IDEs

Yes: [WebStorm treats the extension as JSON5](https://www.jetbrains.com/help/webstorm/json.html)

Optionally map other file name patterns to the JSON5 file type

[JetBrains](https://json5.dev/tools/jetbrains/)

Vim

Yes: ships [filetype detection](https://github.com/vim/vim/blob/master/runtime/autoload/dist/ft.vim) and a [syntax file](https://github.com/vim/vim/blob/master/runtime/syntax/json5.vim)

Add plugins or a language server for schema checks

[Vim and Neovim](https://json5.dev/tools/vim/)

Emacs

Needs a mode

Use [`json5-ts-mode`](https://github.com/melpa/melpa/blob/master/recipes/json5-ts-mode) (needs a Tree-sitter grammar, and its README says multi-line strings are not supported), or `js-mode` as a stand-in

[Emacs](https://json5.dev/tools/emacs/)

Sublime Text

No: the [default JSON syntax](https://github.com/sublimehq/Packages/blob/master/JSON/JSON.sublime-syntax) does not list the extension

Assign a syntax to the extension and add a formatter

[Sublime Text](https://json5.dev/tools/sublime/)

Notepad++

Yes: its [language list](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/langs.model.xml) maps `json5` and `jsonc` to a JSON5 language

Nothing extra for highlighting

[Validate separately](https://json5.dev/tools/validation/)

Kate and other KDE editors

Yes: [KSyntaxHighlighting has a JSON5 definition](https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/json5.xml)

Nothing extra for highlighting

[Validate separately](https://json5.dev/tools/validation/)

In VS Code without any extension, you can borrow the JSONC highlighter. Expect it to complain about syntax that only JSON5 allows, such as unquoted keys and single quotes:

`{ "files.associations": { "*.json5": "jsonc" } }`

The Atom successor Pulsar is covered in the [Atom guide](https://json5.dev/tools/atom/). Command line options are on the [CLI page](https://json5.dev/tools/cli/).

![Globe icon](https://json5.dev/images/icons/globe.png)

## Extension and MIME Type Facts

The conventional extension is `.json5` and the conventional media type is `application/json5`. Neither is the product of a formal registration. The [IANA list of application media types](https://www.iana.org/assignments/media-types/application.csv), checked on November 29, 2026, has no JSON5 entry, while it does list `application/json`, `application/yaml` and `application/toml`.

The convention comes from the project's issue tracker. Asked in 2013 which type the project would use, its creator answered that either `application/vnd.json5` or `application/json5` was fine ([issue 40](https://github.com/json5/json5/issues/40)). Later answers from contributors settled on `application/json5` ([issue 80](https://github.com/json5/json5/issues/80), [issue 123](https://github.com/json5/json5/issues/123)).

Software

Type it assigns to a .json5 file (default setup)

[mime-db](https://github.com/jshttp/mime-db/blob/master/src/custom-types.json) 1.54.0, used by the npm `mime-types` package, which Express 5 relies on for static files

`application/json5`, listed as a custom (non-IANA) type

freedesktop.org [shared-mime-info](https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/data/freedesktop.org.xml.in), the type database of many Linux desktops (current development source)

`application/json5`, described as "JSON5 document"

nginx [mime.types](https://github.com/nginx/nginx/blob/master/conf/mime.types)

No entry

Apache HTTP Server [mime.types](https://github.com/apache/httpd/blob/trunk/docs/conf/mime.types)

No entry

Python 3.14.4 `mimetypes`, tested on Windows

No guess; `http.server` sends `application/octet-stream`

For the wider status question, see [standards status](https://json5.dev/standards/).

![Compare icon](https://json5.dev/images/icons/compare.png)

## .json5 or .json?

The extension is a promise to other tools. A `.json` name tells editors, linters, servers and scripts that a strict JSON parser will succeed. A `.json5` name tells them to use a JSON5 parser.

-   **Renaming JSON to JSON5 is syntactically safe**, because the text stays valid. The program that loads the file still has to look for the new name.
-   **Renaming JSON5 to JSON is not safe.** The first comment or unquoted key makes a strict parser fail. Convert the content instead.
-   **Some programs read JSON5 from a `.json` name.** Babel parses [`babel.config.json` and `.babelrc.json` as JSON5](https://babeljs.io/docs/config-files), and OpenClaw reads a [JSON5 config from `openclaw.json`](https://docs.openclaw.ai/gateway/configuration). That is their private rule; other tools may reject the same file.
-   **Some names have a fixed format.** npm requires `package.json` to be [actual JSON](https://docs.npmjs.com/cli/v11/configuring-npm/package-json). pnpm separately accepts a file named [`package.json5`](https://pnpm.io/package_json).

When you control the loader and the file uses JSON5 syntax, name it `.json5`. It avoids false errors in editors and tells the next reader what they are looking at. [The comparison page](https://json5.dev/compare/) weighs JSON5 against JSON, JSONC, YAML and TOML.

![Plugin icon](https://json5.dev/images/icons/plugin.png)

## Common Programs That Produce or Read .json5 Files

Each row below rests on the project's own documentation or source. Finding the file name here is the quickest way to learn what a stray file belongs to.

File name you may see

Program

Role

`package.json5`

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

Alternative project manifest

`renovate.json5`, `.renovaterc.json5`

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

Dependency update bot settings

`tauri.conf.json5`

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

App configuration, enabled by the `config-json5` Cargo feature (file name from the [parser source](https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-utils/src/config/parse.rs))

`.json5` passed to `--config`

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

Packaging configuration

`app.json5`

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

Application-level configuration

`module.json5`

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

Module-level configuration

`oh-package.json5`

[OpenHarmony apps](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/har-package.md)

Module package description and dependencies

`config/<name>.json5` in a Minecraft folder

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

Mod settings written by the Jankson serializer

`<name>.cml` (not a `.json5` name, but JSON5 inside)

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

Component manifest source

`runtime_enabled_features.json5`

[Chromium](https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/platform/runtime_enabled_features.json5)

Build input listing runtime features

Locale files ending in `.json5`

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

Translation resources

Jankson also accepts [some Hjson features](https://github.com/falkreon/Jankson), so a mod config that loads in the game may still fail in a strict JSON5 parser. The longer, graded list is on [who uses JSON5](https://json5.dev/who-uses-json5/).

![Convert icon](https://json5.dev/images/icons/convert.png)

## Convert .json5 to JSON

### In the browser

The [online converter](https://json5.dev/tools/online-converter/) runs in your browser, so the text is not uploaded. Choose the JSON5 to JSON direction, paste the file, pick an indent and copy the result.

### On the command line

The reference package installs a [command line tool](https://github.com/json5/json5/blob/main/lib/cli.js). It reads a file or standard input and writes JSON:

`npx json5 -s 2 server.json5 # print to the terminal npx json5 -s 2 -o server.json server.json5 # write a file npx json5 server.json5 # no -s: compact, one line`

Output for the sample, using version 2.2.3:

`{ "name": "inventory-api", "port": 8080, "fileMode": 420, "timeoutSeconds": 2.5, "retryBackoff": 0.25, "maxPayload": 1048576, "rateLimit": null, "banner": "Inventory service ready", "hosts": [ "api.example.com", "backup.example.com" ] }`

### What you lose

In the JSON5 file

In the JSON output

Why it matters

Comments

Gone

Explanations cannot be recovered from the JSON

`Infinity`, `-Infinity`, `NaN`

`null`

Silent change of meaning: "no limit" becomes "no value"

`-0`

`0`

The sign of zero is dropped

`0x1A4`

`420`

Same value, less readable

`9007199254740993`

`9007199254740992`

JavaScript numbers lose integer precision here, during parsing

Repeated key, such as `{a:1,a:2}`

`{"a":2}`

The reference library keeps the last one

Quote style, line continuations, trailing commas

Normalized

Cosmetic, but diffs get noisy

**The Python command line tool behaves differently.** In version 0.17.3 of the [Python json5 package](https://pypi.org/project/json5/), `python -m json5 --as-json` printed `"rateLimit": Infinity` for the sample. A strict JSON parser rejects that output, so replace non-finite numbers before converting.

Keep the original file as the source and treat the JSON as a build product. If you only want tidy formatting, do not convert at all. Prettier 3.10.1 reformatted the sample with its `json5` parser and kept all three comments, the unquoted keys and the special numbers, while changing the quotes to double quotes and `0x1A4` to `0x1a4`:

`npx prettier --parser json5 --write server.json5`

More options, including the reverse direction, are in [conversion tools](https://json5.dev/tools/conversion/) and [formatting tools](https://json5.dev/tools/formatting/).

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

## Validate the File

For a one-off check, paste it into the [online validator](https://json5.dev/tools/online-validator/), which reports the line and column of the first error. In a terminal, the `-v` flag parses without printing JSON. It is silent with exit code 0 on success and prints the error with exit code 1 on failure:

`npx json5 -v server.json5 npx json5 -v bad.json5 # JSON5: invalid character 'p' at 3:3`

Here `bad.json5` omits the comma after its first property, so the parser stops at the `p` of the second key on line 3, column 3. To check many files in continuous integration, a short script gives clearer output:

``// check-json5.js (npm install json5) const fs = require('node:fs'); const parser = require('json5'); let bad = 0; for (const file of process.argv.slice(2)) { try { parser.parse(fs.readFileSync(file, 'utf8')); console.log(`ok ${file}`); } catch (err) { bad++; console.error(`FAIL ${file}:${err.lineNumber}:${err.columnNumber} ${err.message}`); } } process.exitCode = bad ? 1 : 0;``

`node check-json5.js server.json5 bad.json5 # ok server.json5 # FAIL bad.json5:3:3 JSON5: invalid character 'p' at 3:3`

For lint rules such as duplicate keys, the official [ESLint JSON plugin](https://github.com/eslint/json#readme) has a `json/json5` language. Syntax checks do not prove that the keys and types are what a program expects; that needs a [schema](https://json5.dev/tutorials/schema-validation/). See also [validation tools](https://json5.dev/tools/validation/).

![Server icon](https://json5.dev/images/icons/server.png)

## Serve a .json5 File over HTTP

Send `Content-Type: application/json5`. Labeling the file `application/json` invites clients to run a strict JSON parser on it. Servers that have no mapping need one line of configuration.

### nginx

Add the mapping to the `types` block in your `mime.types` file. If the file should be compressed, also name the type in [`gzip_types`](https://nginx.org/en/docs/http/ngx_http_gzip_module.html), whose default covers only `text/html`.

`# mime.types, inside types { ... } application/json5 json5; # nginx.conf gzip on; gzip_types application/json application/json5;`

### Apache HTTP Server

Use [`AddType`](https://httpd.apache.org/docs/2.4/mod/mod_mime.html) in the server configuration or an `.htaccess` file:

`AddType application/json5 .json5`

### IIS

IIS serves static files only for [extensions it has a MIME mapping for](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc739489\(v=ws.10\)); an unmapped one produces a 404.3 error. Add a [`mimeMap`](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap) entry:

`<configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".json5" mimeType="application/json5" /> </staticContent> </system.webServer> </configuration>`

### Cloudflare Pages and Node.js

On Cloudflare Pages, set the header in a [`_headers` file](https://developers.cloudflare.com/pages/configuration/headers/). Express 5 static serving already picks `application/json5` through `mime-types`.

`# _headers /server.json5 Content-Type: application/json5`

### Reading it in the browser

`response.json()` uses the strict JSON rules, whatever the header says. Read text and parse it with a JSON5 library. The bare `import` below assumes a bundler or an import map that resolves the package name:

``import parser from 'json5'; const response = await fetch('/server.json5'); if (!response.ok) throw new Error(`HTTP ${response.status}`); const settings = parser.parse(await response.text());``

Remember that a file under your web root is public. Do not publish configuration that contains credentials. For data exchanged between programs, strict JSON remains the better choice.

![Bug icon](https://json5.dev/images/icons/bug.png)

## Why a Program Rejects Your File

First find out what parser the program uses. If the file passes `npx json5 -v` but the program still fails, the program is probably using strict JSON or JSONC, or it adds its own rules about keys and values. Renaming the file will not change its parser.

If the validator also fails, match the message. All messages below were produced with version 2.2.3; positions are line:column.

Input

Message

Fix

Empty file, or only a comment

`invalid end of input`

A document needs one value; use `{}` for no settings

`{content-type: 1}`

`invalid character '-'`

Quote keys that contain hyphens or spaces, or start with a digit

Backtick string

``invalid character '`'``

Use single or double quotes

`# comment`

`invalid character '#'`

Use `//` or `/* */`

Two objects one after another

`invalid character '{'`

Wrap them in one array, or split the file

`010`

`invalid character '1'`

Remove the leading zero

`1_000`

`invalid character '_'`

Write `1000`

`undefined`

`invalid character 'u'`

Use `null` or omit the key

Unquoted date `2026-01-01`

`invalid character '-'`

Write the date as a string

Raw line break inside a string

`invalid character '\n'`

Use `\n`, or end the line with a backslash

Curly quotes pasted from a document

invalid character, showing the curly quote

Replace them with straight quotes

Doubled comma, such as `[1,,]`

`invalid character ','`

Remove the extra comma; only one trailing comma is allowed

UTF-16 file with a byte order mark, read as UTF-8

invalid character at `1:1`

Save again as UTF-8

A UTF-8 [byte order mark](https://json5.dev/glossary/#byte-order-mark) did not trouble the reference parser in the same test, although other parsers may treat it differently. Deeper help is in [parse errors](https://json5.dev/troubleshooting/parse-errors/), [encoding problems](https://json5.dev/troubleshooting/encoding/), [common mistakes](https://json5.dev/troubleshooting/common-mistakes/) and the [error reference](https://json5.dev/errors/).

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

## Common questions

### Is a .json5 file safe to open?

Opening it in a text editor only displays text. The risk comes from programs that act on its settings, so treat a configuration file from a stranger as you would any other: read it before you point a tool at it.

### Can I just change the extension to .json?

Only if the content already happens to be strict JSON. Otherwise the program that reads the new name will fail. Convert it with the online converter or the command line tool, and keep the original.

### Can a spreadsheet or browser open it?

A browser may show or download it depending on the media type the server sends. It is a nested text structure, so a spreadsheet will not turn it into a table without a conversion step.

### Is it the fifth version of JSON?

No. It is a separate, community-defined [superset](https://json5.dev/glossary/#superset), and standard JSON parsers do not accept its additions. [The history page](https://json5.dev/history/) explains where it came from.

### Which programming languages can read it?

Libraries exist for many languages. Start with the [implementations directory](https://json5.dev/implementations/) or the guides for [JavaScript](https://json5.dev/javascript/) and [Python](https://json5.dev/python/).

## Related pages

[

![Convert icon](https://json5.dev/images/icons/convert.png)

### Online Converter

Turn JSON5 into JSON and back in your browser.

](https://json5.dev/tools/online-converter/)[

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

### Online Validator

Find the line and column of an error.

](https://json5.dev/tools/online-validator/)[

![Team icon](https://json5.dev/images/icons/team.png)

### Who Uses JSON5

Projects and platforms that read it.

](https://json5.dev/who-uses-json5/)[

![Learning icon](https://json5.dev/images/icons/learning.png)

### Getting Started

Write your first file step by step.

](https://json5.dev/tutorials/getting-started/)

## Sources

(49)

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 command line source (lib/cli.js)](https://github.com/json5/json5/blob/main/lib/cli.js)
4.  [IANA media types: application registry (CSV)](https://www.iana.org/assignments/media-types/application.csv)
5.  [json5 issue 40: mime type](https://github.com/json5/json5/issues/40)
6.  [json5 issue 80: Clarify Mime type](https://github.com/json5/json5/issues/80)
7.  [json5 issue 123: MIME type](https://github.com/json5/json5/issues/123)
8.  [jshttp/mime-db custom types](https://github.com/jshttp/mime-db/blob/master/src/custom-types.json)
9.  [freedesktop.org shared-mime-info type database](https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/data/freedesktop.org.xml.in)
10.  [nginx default mime.types](https://github.com/nginx/nginx/blob/master/conf/mime.types)
11.  [Apache httpd mime.types](https://github.com/apache/httpd/blob/trunk/docs/conf/mime.types)
12.  [GitHub Linguist languages.yml](https://github.com/github-linguist/linguist/blob/main/lib/linguist/languages.yml)
13.  [Microsoft Support: Change default apps in Windows](https://support.microsoft.com/en-us/windows/change-default-apps-in-windows-e5d82cad-17d1-c53b-3505-f10a32e1894d)
14.  [Microsoft Learn: about\_Character\_Encoding (Windows PowerShell 5.1)](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding?view=powershell-5.1)
15.  [Apple: Choose an app to open a file on Mac](https://support.apple.com/guide/mac-help/choose-an-app-to-open-a-file-on-mac-mh35597/mac)
16.  [freedesktop.org: xdg-mime manual](https://portland.freedesktop.org/doc/xdg-mime.html)
17.  [VS Code built-in JSON extension manifest](https://github.com/microsoft/vscode/blob/main/extensions/json/package.json)
18.  [Visual Studio Marketplace: Better JSON5](https://marketplace.visualstudio.com/items?itemName=BlueGlassBlock.better-json5)
19.  [Visual Studio Marketplace: JSON5 syntax](https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-json5)
20.  [WebStorm help: JSON](https://www.jetbrains.com/help/webstorm/json.html)
21.  [Vim runtime: filetype detection](https://github.com/vim/vim/blob/master/runtime/autoload/dist/ft.vim)
22.  [Vim runtime: json5 syntax file](https://github.com/vim/vim/blob/master/runtime/syntax/json5.vim)
23.  [MELPA recipe: json5-ts-mode](https://github.com/melpa/melpa/blob/master/recipes/json5-ts-mode)
24.  [Sublime Text default JSON syntax](https://github.com/sublimehq/Packages/blob/master/JSON/JSON.sublime-syntax)
25.  [Notepad++ langs.model.xml](https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/langs.model.xml)
26.  [KDE KSyntaxHighlighting: json5.xml](https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/json5.xml)
27.  [npm docs: package.json](https://docs.npmjs.com/cli/v11/configuring-npm/package-json)
28.  [Babel docs: configuration files](https://babeljs.io/docs/config-files)
29.  [OpenClaw docs: configuration](https://docs.openclaw.ai/gateway/configuration)
30.  [pnpm docs: package.json](https://pnpm.io/package_json)
31.  [Renovate docs: configuration options](https://docs.renovatebot.com/configuration-options/)
32.  [Tauri docs: configuration files](https://v2.tauri.app/develop/configuration-files/)
33.  [Tauri source: config/parse.rs](https://github.com/tauri-apps/tauri/blob/dev/crates/tauri-utils/src/config/parse.rs)
34.  [electron-builder docs: configuration](https://www.electron.build/docs/configuration)
35.  [OpenHarmony docs: app.json5](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/app-configuration-file.md)
36.  [OpenHarmony docs: module.json5](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/module-configuration-file.md)
37.  [OpenHarmony docs: HAR package](https://github.com/openharmony/docs/blob/master/en/application-dev/quick-start/har-package.md)
38.  [Cloth Config: JanksonConfigSerializer source](https://github.com/shedaniel/cloth-config/blob/HEAD/common/src/main/java/me/shedaniel/autoconfig/serializer/JanksonConfigSerializer.java)
39.  [falkreon/Jankson](https://github.com/falkreon/Jankson)
40.  [Fuchsia docs: component manifests](https://fuchsia.dev/fuchsia-src/concepts/components/v2/component_manifests)
41.  [Chromium: runtime\_enabled\_features.json5](https://github.com/chromium/chromium/blob/main/third_party/blink/renderer/platform/runtime_enabled_features.json5)
42.  [i18next-fs-backend README](https://github.com/i18next/i18next-fs-backend#readme)
43.  [PyPI: json5](https://pypi.org/project/json5/)
44.  [eslint/json README](https://github.com/eslint/json#readme)
45.  [nginx: ngx\_http\_gzip\_module](https://nginx.org/en/docs/http/ngx_http_gzip_module.html)
46.  [Apache: mod\_mime](https://httpd.apache.org/docs/2.4/mod/mod_mime.html)
47.  [Microsoft (archived, IIS 6): requests for static files return 404](https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2003/cc739489\(v=ws.10\))
48.  [Microsoft Learn: IIS mimeMap](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/staticcontent/mimemap)
49.  [Cloudflare Pages: Headers](https://developers.cloudflare.com/pages/configuration/headers/)

Last reviewed: November 29, 2026.
