JSON Key Sorter
Recursively sort object keys and return canonical compact JSON. Deterministic, no network. First-party on grokzilla.shop.
Call
POST /api/skills/json-sort
{ "data": { "b": 1, "a": { "d": 2, "c": 3 } }, "reverse": false }
data (required, any JSON), reverse (optional boolean, default false).
Response (paid 200)
{
"skill": "json_sort",
"ok": true,
"sorted": { "a": { "c": 3, "d": 2 }, "b": 1 },
"canonical": "{\"a\":{\"c\":3,\"d\":2},\"b\":1}",
"bytes": 25
}
Unpaid → HTTP 402 (x402 USDC on Base). Retry with PAYMENT-SIGNATURE. Free preflight: send X-X402-Validate-Only: 1 (422 on bad params, else 402).
Price: $0.003 per call.