json-tools
/json-tools
Query, filter, transform, and validate JSON using jq (or Python as a fallback). Use when users want to extract fields from a JSON blob/file/API response, reshape JSON, pretty-print, or check that JSON is valid. Triggers on mentions of json, jq, extract field, parse json, pretty print json, validate json, reshape, 解析 json, 提取字段, 格式化 json.
- Author
- microclaw ↗
- Repository
- microclaw ↗
- Licence
- MIT
- Last repository change
- 26.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Query, filter, transform, and validate JSON using jq (or Python as a fallback). Use when users want to extract fields from a JSON blob/file/API response, reshape JSON, pretty-print, or check that JSON is valid. Triggers on mentions of json, jq, extract field, parse json, pretty print json, validate json, reshape, 解析 json, 提取字段, 格式化 json.
Original author description
Query, filter, transform, and validate JSON using jq (or Python as a fallback). Use when users want to extract fields from a JSON blob/file/API response, reshape JSON, pretty-print, or check that JSON is valid. Triggers on mentions of json, jq, extract field, parse json, pretty print json, validate json, reshape, 解析 json, 提取字段, 格式化 json.
How it works
- Pretty-print / validate
- Extract a field / path
- Reshape into a new object / CSV
- Python fallback for the same tasks
- Guidance
SKILL.md preview
---
name: json-tools
description: "Query, filter, transform, and validate JSON using jq (or Python as a fallback). Use when users want to extract fields from a JSON blob/file/API response, reshape JSON, pretty-print, or check that JSON is valid. Triggers on mentions of json, jq, extract field, parse json, pretty print json, validate json, reshape, 解析 json, 提取字段, 格式化 json."
license: Proprietary. LICENSE.txt has complete terms
compatibility: "Prefers jq; falls back to python3. Works on macOS, Linux, and Windows."
---
# JSON Tools
Prefer `jq` for querying JSON; fall back to Python's `json` if `jq` isn't installed
(`command -v jq` to check).
## Pretty-print / validate
```bash
jq . data.json # pretty-print (errors if invalid)
python3 -m json.tool data.json # stdlib fallback
```
## Extract a field / path
```bash
jq -r '.user.name' data.json
jq -r '.items[].id' data.json # one id per line
jq -r '.items[] | select(.active)' data.json
```
## Reshape into a new object / CSV
```bash
jq '{id: .id, who: .user.name}' data.json
jq -r '.rows[] | [.id, .name] | @csv' data.json
```
## Python fallback for the same tasks
```bash
python3 - <<'PY'
import json
d = json.load(open('data.json'))
print([it['id'] for it in d['items'] if it.get('active')])
PY
```
## Guidance
- `jq -r` strips quotes for raw string output; drop `-r` to keep valid JSON.
- For huge files, filter early (`jq '.items[] | select(...)'`) instead of loading all into memory in Python.
- When piping an API response, validate first — a truncated/HTML error page is not JSON.
- Show the extracted result, not the entire input.
Versions
The database has no other skills named json-tools.
Database snapshot: 13.11.2026 · package version 42be843c9a5d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 92extract-json
Schema-driven structured JSON extraction (gliner2-base-v1). Use when the user wants to pull specific named fields out of free text into a JSON object — contact info, invoice details, order data, profile attributes — defined by a per-field type/description schema. - 92extract-json
Schema-driven structured JSON extraction (gliner2-base-v1). Use when the user wants to pull specific named fields out of free text into a JSON object — contact info, invoice details, order data, profile attributes — defined by a per-field type/description schema. - 100data-processing
Process JSON with jq and YAML/TOML with yq. Filter, transform, query structured data efficiently. Triggers on: parse JSON, extract from YAML, query config, Docker Compose, K8s manifests, GitHub Actions workflows, package.json, filter data. - 100jq-json-parsing
Queries, filters, counts and reshapes JSON files and API output from the command line with jq. Use when the user wants to dig through large or nested JSON, for example "pull every name out of this JSON array with jq", "count the log entries where latency is over a threshold",… - 90extract-dataset
Use Geonode to extract fields from web pages into CSV or JSON. Use for product data, directories, article metadata and other structured web datasets. - 100jq-json-processing
jq JSON processing: query, filter, transform JSON. Use when parsing JSON files, filtering arrays/objects, transforming structures, or extracting fields from JSON.