← Back to Skills Marketplace
claudiodrusus

JSON Toolkit

by claudiodrusus · GitHub ↗ · v1.1.0
cross-platform ✓ Security Clean
667
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install json-toolkit
Description
Swiss-army knife for JSON files. Pretty-print, validate, minify, sort keys, and query with dot-notation paths. Zero dependencies.
README (SKILL.md)

JSON Toolkit

A zero-dependency Python utility for working with JSON data. Validates, formats, minifies, queries, and inspects JSON files — all with Python's standard library.

Features

  • Pretty-print with configurable indentation (2, 4, or any number of spaces)
  • Minify JSON to reduce file size for APIs and storage
  • Validate JSON and get structural stats (type, key count, size)
  • Query nested data with dot-notation paths including array indices
  • Sort keys alphabetically for deterministic output and easier diffs
  • Stdin support for use in shell pipelines with other tools

Usage Examples

Pretty-print a JSON file:

python main.py data.json

Validate without output:

python main.py config.json --validate
# ✓ Valid JSON
#   Type: object (12 keys)
#   Size: 4832 bytes

Query a nested value:

python main.py users.json --query data.users.0.name
# "Alice"

Minify for production:

python main.py config.json --minify -o config.min.json

Sort keys for consistent diffs:

python main.py package.json --sort-keys -o package-sorted.json

Pipe from curl:

curl -s https://api.example.com/data | python main.py - --query results.0

Query Syntax

Use dot notation to navigate nested structures. Array indices are numbers:

  • name — top-level key
  • data.users — nested object key
  • data.users.0 — first element of an array
  • data.users.0.email — field of the first array element
  • config.servers.2.host — deeply nested value

Command Line Options

  • input — JSON file path, or - for stdin
  • -o, --output — Output file (defaults to stdout)
  • --indent N — Indentation spaces (default: 2)
  • --minify — Output minified JSON (no whitespace)
  • --query PATH / -q PATH — Extract a value at the given dot-notation path
  • --validate — Only validate and print stats, no output
  • --sort-keys — Sort object keys alphabetically
  • --json — (implicit) Output is always valid JSON
Usage Guidance
This tool appears safe and does what it claims, but note: it will read any file you pass to it (or data piped to stdin) and can overwrite the output path you specify. Because the package has no homepage and an unknown source owner, run it in a trusted or isolated environment if you are cautious, verify the included main.py matches your expectations, and avoid piping untrusted network data into the script without inspection.
Capability Analysis
Type: OpenClaw Skill Name: json-toolkit Version: 1.1.0 The skill bundle provides a JSON toolkit for formatting, validating, minifying, and querying JSON data. The `SKILL.md` documentation is straightforward and does not contain any prompt injection attempts or instructions for malicious actions. The `main.py` script uses only standard Python libraries (`sys`, `json`, `argparse`) and performs file I/O as explicitly stated in its purpose. There is no evidence of data exfiltration, unauthorized network activity, command execution, persistence mechanisms, or obfuscation. The file access capabilities are inherent to the tool's function as a JSON file processor and do not indicate malicious intent within the script itself.
Capability Assessment
Purpose & Capability
Name/description (pretty-print, validate, minify, query, sort) match the included Python script. The required resources are minimal and proportional to a JSON utility.
Instruction Scope
SKILL.md instructs running the provided script and using stdin/stdout or files; examples (including piping from curl) are consistent with a JSON tool. There are no instructions to read unrelated files, environment variables, or to exfiltrate data.
Install Mechanism
No install spec. The skill is instruction-only with an included Python file (no external downloads or package installs). The script uses only the Python standard library.
Credentials
No environment variables, credentials, or config paths are requested. The tool reads only the user-specified input (file or stdin) and optionally writes to a user-specified output file.
Persistence & Privilege
always:false and user-invocable:true (normal). The skill does not request persistent privileges or modify other skills or global agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install json-toolkit
  3. After installation, invoke the skill by name or use /json-toolkit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
No visible changes detected in this release. - Version number updated to 1.1.0. - No content or file updates present.
v1.0.1
v1.0.1: docs update
v1.0.0
Initial release
Metadata
Slug json-toolkit
Version 1.1.0
License
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is JSON Toolkit?

Swiss-army knife for JSON files. Pretty-print, validate, minify, sort keys, and query with dot-notation paths. Zero dependencies. It is an AI Agent Skill for Claude Code / OpenClaw, with 667 downloads so far.

How do I install JSON Toolkit?

Run "/install json-toolkit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is JSON Toolkit free?

Yes, JSON Toolkit is completely free (open-source). You can download, install and use it at no cost.

Which platforms does JSON Toolkit support?

JSON Toolkit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created JSON Toolkit?

It is built and maintained by claudiodrusus (@claudiodrusus); the current version is v1.1.0.

💬 Comments