JSON toolbox: validate, format, minify, schema and YAML
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
Everything about one JSON document in a single call: valid or not with the error's line and column, pretty-printed (optionally with sorted keys), minified with the bytes saved, an inferred JSON Schema, structure statistics (depth, objects, arrays, keys, value types) and the same data as YAML. Up to 200 KB. Cheaper than the separate JSON tools. Use to inspect API responses, clean model output or document a payload.
$0.001 per call with prepaid credits: $1 by card pays for 1,000 calls, with no account and no subscription.
Inputs
| Name | Type | Description |
|---|---|---|
json (required) | string | The JSON text (up to 200 KB) |
sortKeys | string | true to sort object keys in the formatted output |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://glyphtools.com/pack/json-toolbox?json=%7B%22name%22%3A%22agent%22%2C%22tools%22%3A%5B%22weather%22%2C%22search%22%5D%2C%22active%22%3Atrue%2C%22limits%22%3A%7B%22daily%22%3A100%7D%7D"
Node.js
const r = await fetch("https://glyphtools.com/pack/json-toolbox?json=%7B%22name%22%3A%22agent%22%2C%22tools%22%3A%5B%22weather%22%2C%22search%22%5D%2C%22active%22%3Atrue%2C%22limits%22%3A%7B%22daily%22%3A100%7D%7D", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/pack/json-toolbox?json=%7B%22name%22%3A%22agent%22%2C%22tools%22%3A%5B%22weather%22%2C%22search%22%5D%2C%22active%22%3Atrue%2C%22limits%22%3A%7B%22daily%22%3A100%7D%7D", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/pack/json-toolbox?json=%7B%22name%22%3A%22agent%22%2C%22tools%22%3A%5B%22weather%22%2C%22search%22%5D%2C%22active%22%3Atrue%2C%22limits%22%3A%7B%22daily%22%3A100%7D%7D&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"valid": true,
"error": null,
"type": "object",
"bytes": 82,
"minifiedBytes": 82,
"formattedBytes": 121,
"saved": 0,
"formatted": "{\n \"name\": \"agent\"\n}",
"minified": "{\"name\":\"agent\"}",
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
},
"required": [
"name"
]
},
"stats": {
"depth": 2,
"objects": 2,
"arrays": 1,
"keys": 5,
"strings": 3,
"numbers": 1,
"booleans": 1,
"nulls": 0
},
"yaml": "name: agent\n"
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is pack_json_toolbox, and the first 10 successful calls are free:
https://glyphtools.com/mcp