← Back to Skills Marketplace
Jsonpretty
by
rogue-agent1
· GitHub ↗
· v1.0.0
· MIT-0
130
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install jsonpretty
Description
Format, validate, query, flatten, and analyze JSON data. Use when asked to pretty-print JSON, validate JSON syntax, query nested JSON with dot-notation, flat...
README (SKILL.md)
jsonpretty 📋
JSON swiss army knife — format, validate, query, flatten, stats.
Commands
# Pretty-print (from file or stdin)
python3 scripts/jsonpretty.py data.json
echo '{"a":1}' | python3 scripts/jsonpretty.py
# Validate JSON
python3 scripts/jsonpretty.py --validate data.json
# Query with dot-notation
echo '{"user":{"name":"Rogue"}}' | python3 scripts/jsonpretty.py -q "user.name"
# Flatten nested JSON
cat data.json | python3 scripts/jsonpretty.py --flat
# Structure stats (key count, depth, types, size)
python3 scripts/jsonpretty.py --stats data.json
# Compact output (minify)
python3 scripts/jsonpretty.py --compact data.json
# Sort keys
python3 scripts/jsonpretty.py --sort data.json
Features
- Pretty-print with 2-space indent (default)
- JSON validation with error messages
- Dot-notation querying (supports array indices:
key[0].sub) - Flatten nested objects to
key.subkey = valuepairs - Structure statistics: key count, nesting depth, type distribution, byte size
- Compact/minify mode
- Sorted key output
- Reads from file or stdin
Usage Guidance
This appears to be a simple, self-contained JSON utility. Before installing or running it, ensure you have Python3 available and be mindful about pointing it at sensitive files (it will read any file path you provide). Note: the repository contains the same script in two locations (root and scripts/), which is harmless but redundant. Also be aware that some query paths may raise exceptions on malformed paths (this is a usability bug, not a security issue). If you need production guarantees, consider auditing behavior on very large or deeply nested JSON to avoid memory/stack issues.
Capability Analysis
Type: OpenClaw Skill
Name: jsonpretty
Version: 1.0.0
The jsonpretty skill is a standard utility for processing JSON data, including formatting, validation, and querying. The Python implementation in jsonpretty.py uses only the standard library, contains no network or unauthorized file system access, and lacks any signs of obfuscation or malicious intent.
Capability Assessment
Purpose & Capability
Name/description (format, validate, query, flatten, stats) matches the code and SKILL.md. The skill only requires Python to run and reads JSON from a file or stdin, which is appropriate for the stated purpose.
Instruction Scope
SKILL.md instructs running the provided Python script against a file or stdin and lists feature flags (validate, query, flat, stats, compact, sort). The runtime instructions do not ask the agent to read unrelated files, environment variables, or transmit data to external endpoints.
Install Mechanism
There is no install spec. The skill is instruction-only / script-based and uses only the local Python interpreter and standard library; nothing is downloaded or written to disk beyond the included files.
Credentials
No environment variables, credentials, or config paths are required. The skill does not request broad secrets or unrelated tokens.
Persistence & Privilege
always is false and the skill does not request persistent system privileges or modify other skills or system-wide settings. It only runs the provided script when invoked.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install jsonpretty - After installation, invoke the skill by name or use
/jsonpretty - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of jsonpretty, a pure Python tool for JSON formatting and analysis.
- Supports pretty-printing, validation with error messages, dot-notation querying (including array indices), and flattening of nested JSON.
- Provides JSON structure statistics: key count, maximum depth, data type summary, and byte size.
- Includes compact (minify) and key-sorting output modes.
- Works with files or stdin; zero external dependencies required.
Metadata
Frequently Asked Questions
What is Jsonpretty?
Format, validate, query, flatten, and analyze JSON data. Use when asked to pretty-print JSON, validate JSON syntax, query nested JSON with dot-notation, flat... It is an AI Agent Skill for Claude Code / OpenClaw, with 130 downloads so far.
How do I install Jsonpretty?
Run "/install jsonpretty" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Jsonpretty free?
Yes, Jsonpretty is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Jsonpretty support?
Jsonpretty is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Jsonpretty?
It is built and maintained by rogue-agent1 (@rogue-agent1); the current version is v1.0.0.
More Skills