JSON toolbox: validate, format, minify, schema and YAML

$0.02 per call · failed calls are never charged · no account or API key needed

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.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Try it with your own inputs

The JSON text (up to 200 KB)

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
json (required)stringThe JSON text (up to 200 KB)
sortKeysstringtrue to sort object keys in the formatted output

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/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"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/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 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools