JSON Processor Pack

Trustedv1.0.0MITVerified88

by AgentNode · published 25 days ago · toolpack

Parse, transform, query, and validate JSON data structures.

JMESPath queries, schema validation, and structural transformations for JSON.

langchaincrewaigeneric

Quick Start

bash
agentnode install json-processor-pack

Usage

From package
python
from json_processor_pack.tool import run

api_response = {
    "data": {
        "users": [
            {"id": 1, "name": "Alice Chen", "role": "admin", "active": True, "logins": 142},
            {"id": 2, "name": "Bob Patel", "role": "editor", "active": True, "logins": 87},
            {"id": 3, "name": "Carol Wu", "role": "admin", "active": False, "logins": 12},
            {"id": 4, "name": "Dave Kim", "role": "viewer", "active": True, "logins": 234}
        ],
        "total": 4,
        "page": 1
    }
}

# JMESPath query: get names of active admins
result = run(
    action="process_json",
    operation="query",
    data=api_response,
    jmespath="data.users[?role=='admin' && active].name"
)

print(f"Active admins: {result['result']}")
# Active admins: ['Alice Chen']

# Flatten the nested structure
flat = run(
    action="process_json",
    operation="flatten",
    data=api_response,
    separator="."
)
for key, value in flat["result"].items():
    print(f"  {key}: {value}")

Verification

high confidence88/100✔ Verified
smokeReturned valid result
+25/25
testsAuto-generated tests only
+8/15
importAll tools imported successfully
+15/15
installInstalled in 2.1s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install2.1s
import124ms
smoke125ms
tests1.0s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseractuv

Last verified 21d ago· Runner v2.0.0

Use this when you need to...

  • Query nested API responses using JMESPath expressions
  • Validate webhook payloads against JSON Schema definitions
  • Flatten deeply nested JSON into tabular row format
  • Merge and diff two JSON configuration files
  • Transform JSON data structures with field mapping and renaming

README

JSON Processor Pack

Parse, transform, query, and validate JSON data structures. Powered by JMESPath queries, JSON Schema validation, and structural transformations.

Quick Start

agentnode install json-processor-pack
from json_processor_pack.tool import run

result = run(
    action="process_json",
    operation="query",
    data={"users": [{"name": "Alice"}, {"name": "Bob"}]},
    jmespath="users[].name"
)
print(result["result"])  # ['Alice', 'Bob']

Usage

JMESPath Query

result = run(
    action="process_json",
    operation="query",
    data=nested_data,
    jmespath="items[?status=='active'].{id: id, name: name}"
)

Schema Validation

result = run(
    action="process_json",
    operation="validate",
    data={"name": "Alice", "age": 30},
    schema={"type": "object", "required": ["name", "age"]}
)
print(f"Valid: {result['valid']}")

Diff Two JSON Objects

result = run(
    action="process_json",
    operation="diff",
    data={"a": 1, "b": 2, "c": 3},
    target={"a": 1, "b": 5, "d": 4}
)
for change in result["changes"]:
    print(f"{change['type']}: {change['path']}")

API Reference

CapabilityDescription
process_jsonQuery, validate, transform, and diff JSON data

Operations: query (JMESPath), validate (JSON Schema), flatten, unflatten, diff, merge, transform

License

MIT

Version History

Capabilities

json_processingprocess_jsontool

Permissions

This package declares the following access levels. Review before installing.

Networknone
Filesystemnone
Code Executionnone
Data Accessinput_only
User Approvalnever
bash
agentnode install json-processor-pack

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointjson_processor_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode