# micha/jsawk

Like awk, but for JSON.

Repository: https://github.com/micha/jsawk
Canonical: https://ross.abutalabs.com/products/jsawk
Language: Shell
License Family: other
Last push: 2021-08-31T15:23:11+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": 6309, "days_push": 1828, "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 1385, forks 90 (observed 2026-08-28T04:04:34.813936+00:00)

## What it is
Jsawk is a command-line tool that works like awk but for JSON, filtering and transforming arrays of JSON objects read from stdin using JavaScript snippets. It is a shell script that relies on the SpiderMonkey js interpreter and can pipe results to other processes or load JavaScript libraries.

## Use cases
- filter JSON arrays from a REST API in a shell script
- transform JSON data into other text formats on the command line
- modify fields of JSON objects fetched via curl or resty before PUT requests
- query and extract values from JSON in bash pipelines
- preprocess or postprocess JSON arrays with custom JavaScript snippets

## When to choose
- you need awk-style JSON filtering in shell scripts
- you want a lightweight single-script tool with no heavy dependencies beyond a js interpreter
- you pipe JSON between REST endpoints and other command-line tools

## When to avoid
- you need actively maintained software with recent updates or a license
- you prefer modern tools like jq with richer query syntax
- you work in environments where installing SpiderMonkey is impractical

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: cli, parser, developer-tools
- domain: developer-tools, apis
- platform: cli, cross-platform
- tags: -processing, awk-like, shell-scripting, spidermonkey, command-line-, command-line, linux, macos

## Member repositories
- micha/jsawk (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:34.813936+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:39:57.451746+00:00, confidence not recorded.
  - readme: https://github.com/micha/jsawk (fetched 2026-08-28T04:04:34.813936+00:00, sha d8a43992d3a9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
