# json5/json5

JSON5 — JSON for Humans

Repository: https://github.com/json5/json5
Canonical: https://ross.abutalabs.com/products/json5
Homepage: http://json5.org/
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: json, json5
Last push: 2024-10-25T14:12:31+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5211, "days_push": 677, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7160, forks 276 (observed 2026-08-28T04:09:56.304597+00:00)

## What it is
JSON5 is a JavaScript library implementing the JSON5 data format, a superset of JSON that adds ES5.1 features like comments, unquoted keys, trailing commas, and relaxed string/number syntax. It is the reference implementation for parsing and serializing JSON5, intended primarily for human-written config files rather than machine-to-machine communication.

## Use cases
- parse json5 config files in node
- write human-friendly json with comments
- serialize javascript objects to json5
- support json5 in a build tool or bundler
- read config files with trailing commas and single quotes

## When to choose
- you need to parse or write JSON5 files in JavaScript
- you want a JSON format for hand-maintained config files
- you need a battle-tested, widely-adopted JSON5 implementation

## When to avoid
- you need maximum parsing performance for machine-to-machine data exchange
- you need strict standard JSON output
- you are not working in JavaScript or a platform with a separate JSON5 library

## Facets
- artifact type: library
- maturity: stable
- function: parser, serialization, json
- domain: developer-tools, files, web-development
- platform: cross-platform
- tags: json5, config-files, data-format, es5, nodejs, javascript

## Member repositories
- json5/json5 (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.304597+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:39:58.671927+00:00, confidence not recorded.
  - readme: https://github.com/json5/json5 (fetched 2026-08-28T04:09:56.304597+00:00, sha 54321f261f7b)
  - homepage: http://json5.org/ (fetched 2026-08-29T08:35:33.149848+00:00, sha 897aa374158f)
  - registry_npm: https://registry.npmjs.org/json5 (fetched 2026-08-29T08:35:33.152505+00:00, sha 1000c58b68f6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
