# Seldaek/jsonlint

JSON Lint for PHP

Repository: https://github.com/Seldaek/jsonlint
Canonical: https://ross.abutalabs.com/products/seldaek-jsonlint
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-08-01T12:42:10+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 88, longevity 100
- inputs: {"age_days": 5377, "days_push": 32, "days_rel": 82, "gap_med": 0, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1325, forks 58 (observed 2026-08-28T04:04:22.485150+00:00)

## What it is
A PHP library that validates and parses JSON with detailed, human-readable error messages pointing at the exact line and expected tokens. It also supports flags for duplicate key detection, comment tolerance, and UTF-8 validation.

## Use cases
- validate json files with helpful error messages
- parse json in php with exceptions instead of null
- detect duplicate keys in json documents
- validate utf-8 encoding of strings
- lint json config files in a build pipeline

## When to avoid
- you only need basic json_decode behavior and don't care about error details
- raw parsing performance is critical, as it is slower than json_decode

## Facets
- artifact type: library
- maturity: stable
- function: parser, linter, json
- domain: developer-tools, parsers, web-development
- platform: php, cli
- tags: json-validation, error-messages, composer-ecosystem

## Member repositories
- Seldaek/jsonlint (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.485150+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-30T04:46:25.966431+00:00, confidence not recorded.
  - readme: https://github.com/Seldaek/jsonlint (fetched 2026-08-28T04:04:22.485150+00:00, sha c2df657d7ceb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
