JSON Tools
live UtilityValidate JSON (with error position), pretty-print or minify, and extract a value at a dot/bracket path. Keyless, offline.
Tools
validate_json Validate a JSON string (keyless, offline). Returns whether it is valid and, if not, the error message and the character position.
No parameters required.
Try it
format_json Pretty-print or minify a JSON string. `indent` sets spaces (default 2); pass 0 to minify to a single line. Keyless, offline.
No parameters required.
Try it
query_json Extract a value from JSON at a path using dot/bracket notation, e.g. "user.addresses[0].city". Keyless, offline.
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/json/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' curl -X POST https://gateway.pipeworx.io/json/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"validate_json","arguments":{}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("validate_json", {}); // Or ask in plain English:
const answer = await px.ask("validate json (with error position), pretty-print or minify, and extract a value at a dot/bracket path");