Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Coding
Clean JSON Toolkit
Try itLocal JSON / JSONL inspection and manipulation toolkit. Inspect deeply nested structures (path tree, types, sample values per path), query with a jq-style pa...
What it does
Fourth member of the family. csv handles structured tabular data, text handles unstructured strings, log handles timestamped logs, and **json** handles nested data — API responses, config files, JSONL event streams.
The skill document
clean-json-toolkit
v0.2.0
Fourth member of the clean-* family. csv handles structured tabular data, text handles unstructured strings, log handles timestamped logs, and json handles nested data — API responses, config files, JSONL event streams.
Pure Python 3 standard library. No jq, no jsonschema, no pip installs.
Scripts
scripts/inspect.py— profile a.jsonor.jsonlfile: tree of every distinct path with types, counts, and N sample values per path.scripts/query.py— jq-style path queries..key.nested,.key[0],.[]iterate,.key.[].fieldmap. Output modes:--json/--jsonl/--lines/--raw. JSONL inputs implicitly iterate at the top level.scripts/flatten.py— flatten nested JSON into dot-notation keys. Reversible with--unflatten. Roundtrip-safe.scripts/validate.py— validate against a small schema (required,type,min/max,min_length/max_length,enum,regex,item_type,allow_extra).scripts/merge.py(NEW in v0.2.0) — merge multiple JSON files into one. Five strategies:deep(default; recursive merge, arrays replace),shallow(top-level only),array-concat(deep + arrays concatenated),array-uniq(deep + arrays deduped),array-extend(require all inputs to be arrays, then concatenate). The canonical agent need: cascade defaults + user + env-specific configs.scripts/patch.py(NEW in v0.2.0) — RFC 6902 JSON Patch. Applyadd/remove/replace/move/copy/testoperations. Build patches inline with--op --path --valueor load from--patch FILE.--strictaborts at first failure,--dry-runwrites to stdout instead. Supports"/items/-"append-to-array syntax.scripts/check_deps.sh— verifypython3.
Quick start
# Inspect
python3 scripts/inspect.py response.json
python3 scripts/inspect.py events.jsonl --max-samples 5
# Query
python3 scripts/query.py data.json '.meta'
python3 scripts/query.py data.json '.users.[].email' --raw
python3 scripts/query.py events.jsonl '.amount' --lines
# Flatten + unflatten roundtrip
python3 scripts/flatten.py config.json flat.json
python3 scripts/flatten.py flat.json nested.json --unflatten
# Validate
python3 scripts/validate.py users.jsonl --schema schema.json
# Merge (NEW v0.2.0) - cascade configs
python3 scripts/merge.py final.json defaults.json user.json env.json
python3 scripts/merge.py all.json events_*.json --strategy array-extend
python3 scripts/merge.py combined.json a.json b.json --strategy array-concat
# Patch (NEW v0.2.0) - RFC 6902 surgical edits
python3 scripts/patch.py doc.json patched.json --op add --path /email --value '"alice@example.com"'
python3 scripts/patch.py config.json updated.json --patch ops.json --strict
python3 scripts/patch.py doc.json /dev/null --op replace --path /age --value 42 --dry-run
Exit codes
| Code | Meaning |
|---|---|
| 0 | success / one or more results |
| 1 | zero results / validation failed / empty input |
| 2 | bad arguments / unsafe path / missing file / invalid JSON / bad schema |
Safety
- Pure Python 3 stdlib. No
eval, nosubprocess, no remote calls. - All paths validated against safe-path policy (same as the other
clean-*toolkits). - Hand-rolled query path tokenizer.
Pairs well with
License
MIT
Related skills
Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Write, debug, and tune Playwright specs with locator strategy, trace diagnosis, and CI-aware timeouts.
Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.
Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
More from gopendrasharma89-tech
Browse all skillsPro-Studio v4.0.0. AI-powered background removal, smart subtitle placement, and cinematic LUT presets. The ultimate production suite for high-end video content.
Evidence-based, approval-gated self-improvement workflow for OpenClaw. Use when the user asks to make OpenClaw or any project more reliable, faster, cheaper,...
Local CSV / TSV / JSONL inspection and cleanup toolkit. Profile, validate, deduplicate, diff, preview (head/tail/random sample), filter with a safe predicate...
Local text cleanup and inspection toolkit. Extract structured items (URLs, emails, phones, IPs, dates, hashtags, money), redact PII (email/phone/credit-card-...
Local thumbnail generator for videos. Picks the best candidate frames using brightness, sharpness, and scene-change scores, composes professional thumbnails...
Local input-hardening scanner for OpenClaw agents. Pattern-based detection across 9 categories of LLM input risks, with combined-signal scoring and caller-su...