Xpersona
C

Clean JSON Toolkit

CLAWHUB · Unverified

Local JSON / JSONL inspection and manipulation toolkit. Inspect deeply nested structures (path tree, types, sample values per path), query with a jq-style pa... Skill: Clean JSON Toolkit Owner: gopendrasharma89-tech Summary: Local JSON / JSONL inspection and manipulation toolkit. Inspect deeply nested structures (path tree, types, sample values per path), query with a jq-style pa... Tags: agent:0.2.1, config:0.2.1, flatten:0.1.0, inspect:0.2.1, jq:0.1.0, json:0.2.1, jsonl:0.2.1, latest:0.2.1, merge:0.2.1, nested:0.1.0, patch:0.2.1, query:0.2.1, rfc6902:0.2.1, schema:0.2.1, s

62
Rank
84
Safety
968
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 968 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17cp87fy279ggwne1mqcb6675843tdy:clean-json-toolkit
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-gopendrasharma89-tech-clean-json-toolkit/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

25,964 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: clean-json-toolkit
description: Local JSON / JSONL inspection and manipulation toolkit. Inspect deeply nested structures (path tree, types, sample values per path), query with a jq-style path language (no external jq), flatten nested objects/arrays into dot-notation maps and unflatten them back, and validate against a small pragmatic schema (required/type/min/max/regex/enum/item_type). Pure Python 3 standard library, no third-party dependencies, no remote calls.
license: MIT
metadata: {"openclaw":{"requires":{"bins":["python3"]},"primaryEnv":null,"homepage":"https://clawhub.ai/gopendrasharma89-tech/clean-json-toolkit"}}
---

# 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 `.json` or `.jsonl` file: 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.[].field` map. 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. Apply `add` / `remove` / `replace` / `move` / `copy` / `test` operations. Build patches inline with `--op --path --value` or load from `--patch FILE`. `--strict` aborts at first failure, `--dry-run` writes to stdout instead. Supports `"/items/-"` append-to-array syntax.
- `scripts/check_deps.sh` — verify `python3`.

## Quick start

```bash
# 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.jso

_meta.json

{
  "ownerId": "kn7fkwsa5knkdkkachj1p7rwr9843xts",
  "slug": "clean-json-toolkit",
  "version": "0.2.1",
  "publishedAt": 1781846136741
}

skill-card.md

## Description:

Local JSON / JSONL inspection and manipulation toolkit for inspecting nested structures, querying with a jq-style path language, flattening and unflattening data, merging, patching, and validating JSON using Python 3 standard library tooling.

This skill is ready for commercial/non-commercial use.

## Publisher:

[gopendrasharma89-tech](https://clawhub.ai/user/gopendrasharma89-tech)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to inspect, query, transform, merge, patch, and validate local JSON or JSONL files without external JSON tooling or network calls.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Inspection and query output can expose sample values from sensitive local JSON or JSONL files in terminal output or logs.

Mitigation: Avoid running inspection on secrets or redact inputs first; reduce sampling when representative values are not needed.

Risk: Patch, merge, flatten, and unflatten workflows can write changed JSON files that may be difficult to recover if applied to important data.

Mitigation: Use --dry-run where available, write to a separate output path, and keep backups or version control for important files.

Risk: Untrusted validation schemas with complex regular expressions can cause excessive processing or misleading validation results.

Mitigation: Use trusted schemas, avoid complex regex patterns from untrusted sources, and review validation errors before acting on them.

## Reference(s):

- [ClawHub release page](https://clawhub.ai/gopendrasharma89-tech/clean-json-toolkit)
- [ClawHub skill page](https://clawhub.ai/gopendrasharma89-tech/skills/clean-json-toolkit)
- [clean-csv-toolkit](https://clawhub.ai/gopendrasharma89-tech/clean-csv-toolkit)
- [clean-text-toolkit](https://clawhub.ai/gopendrasharma89-tech/clean-text-toolkit)
- [clean-log-toolkit](https://clawhub.ai/gopendrasharma89-tech/clean-log-toolkit)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration]

**Output Format:** [Markdown guidance with shell commands and JSON examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Outputs may include file paths, JSON summaries, transformed JSON files, validation reports, or patch results depending on the selected script.]

## Skill Version(s):

0.2.1 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

LICENSE

MIT License

Copyright (c) 2026 gopendrasharma89-tech

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Sponsored

Ads related to Clean JSON Toolkit and adjacent AI workflows.