JSON Query Tool (jsonq) for Openclaw

A lightweight CLI utility for rapid JSON data extraction and formatting using an intuitive, path-based syntax.

shenghoo123-png
v1.0.0
Apr 7, 2026
0
731
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install json-query-tool-kay

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install json-query-tool-kay using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is JSON Query Tool (jsonq)?

The JSON Query Tool is a high-performance command-line utility built to simplify JSON processing within shell environments. As a standout feature of the Openclaw Skills collection, it provides a user-friendly alternative to complex jq syntax, allowing developers to query, filter, and transform data without a steep learning curve. Whether you are working with configuration files or API responses, this tool optimizes your terminal productivity by making data access immediate and readable.

By integrating this tool into your environment, you gain the ability to handle structured data more efficiently than with standard Unix tools. This specific addition to your Openclaw Skills toolkit ensures that processing JSON Lines or nested objects becomes a seamless part of your daily development cycle, rather than a bottleneck.

JSON Query Tool (jsonq) Use Cases

  • Extract specific fields from deeply nested API response payloads.
  • Rapidly query values from local JSON configuration files for automation scripts.
  • Batch process and extract fields from large-scale JSON Lines log files.
  • Convert raw JSON data into human-readable tables for quick terminal-based inspections.

How JSON Query Tool (jsonq) Works

  1. Provide a source JSON file or pipe data into the jsonq command.
  2. Define a query path using standard dot notation for objects and bracket notation for arrays.
  3. Apply optional wildcards or type filters to isolate specific data points within the structure.
  4. Specify the desired output format, such as raw text, structured JSON, or a formatted table.

JSON Query Tool (jsonq) Setup

# Install the tool locally using pip
pip install -e .

# Alternatively, make the binary executable for direct usage
chmod +x jsonq
./jsonq data.json "users[0].name"

JSON Query Tool (jsonq) Data Schema & Taxonomy

The JSON Query Tool organizes data through a versatile path expression system. It interprets JSON structures and maps them according to the following schema:

Pattern Logic Syntax Example
Property Access Access object keys user.profile.email
Array Index Access specific elements users[0]
Array Traversal Return all elements in array users[*]
Wildcard Match any key name users.*.id
Type Filter Filter by data type age:number

Output formats include raw strings for piping, minified JSON for data integrity, and ASCII tables for human readability.

JSON Query Tool (jsonq) Advanced Features

  • Multi-format output support (raw, json, table) for various downstream processing needs.
  • Advanced wildcard support for complex object traversal and bulk field extraction.
  • Type-specific filtering to ensure data integrity during selection (e.g., extracting only numeric values).
  • Seamless pipeline integration, allowing it to function as a core component of larger Openclaw Skills automation chains.
  • Pro-tier capabilities including batch file processing and custom output formatting for enterprise workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*