# trentm/json

A "json" command for massaging JSON on your Unix command line.

Repository: https://github.com/trentm/json
Canonical: https://ross.abutalabs.com/products/trentm-json
Homepage: https://trentm.com/json
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2024-01-23T13:41:38+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5683, "days_push": 953, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1562, forks 124 (observed 2026-08-28T04:05:03.936166+00:00)

## What it is
A single-file Node.js CLI tool called '' for parsing, validating, filtering, and pretty-printing JSON on the Unix command line. It supports lookups, in-place file editing, streaming newline-delimited JSON, and stripping HTTP headers from REST API responses.

## Use cases
- pretty-print  from curl output
- extract a field from a  response on the command line
- validate  config files from the shell
- filter and process newline-delimited  streams
- edit  files in place from a script
- strip http headers before parsing  payloads

## When to choose
- you want a zero-dependency, single-file  tool for shell pipelines
- you work with REST API responses including curl -i header blocks
- you need fast streaming processing of newline-delimited JSON objects

## When to avoid
- you need jq's full query language or advanced transformations
- you don't have Node.js installed and prefer a self-contained binary
- you need to process very large JSON documents with random access

## Facets
- artifact type: cli-tool
- maturity: stable
- function: cli, parser, developer-tools
- domain: developer-tools, apis
- platform: cli, cross-platform
- tags: -processing, pretty-printing, streaming, jq-alternative, rest-api-debugging, command-line, nodejs

## Member repositories
- trentm/json (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:03.936166+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:29:42.160035+00:00, confidence not recorded.
  - readme: https://github.com/trentm/json (fetched 2026-08-28T04:05:03.936166+00:00, sha 86eefeb21deb)
  - homepage: https://trentm.com/json (fetched 2026-08-29T11:29:24.002839+00:00, sha 6d9a7344d2db)
  - registry_npm: https://registry.npmjs.org/json (fetched 2026-08-29T11:29:24.006373+00:00, sha 4979f2a97584)
- Data as of 2026-08-30T08:39:29.467469+00:00.
