# Grokzilla JSON Sort — Recursive Key Canonicalizer

> Grokzilla JSON Sort — Recursive Key Canonicalizer is a paid API for AI agents from grokzilla.shop, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-11).

Recursively sorts all object keys in a JSON payload and returns a deterministic, canonical compact JSON string with no network calls.

## Facts

- Endpoint: POST https://grokzilla.shop/api/skills/json-sort?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grokzilla-json-sort-recursive-key-canonicalizer-4ce0ece3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TF31MUqwYExsfC0ayAPwL

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability grokzilla-json-sort-recursive-key-canonicalizer-4ce0ece3 -d '<json body>'
```

Example prompt: Sort all the keys in this JSON object alphabetically, recursively through every nested level, and give me the compact canonical result: {"z":1,"a":{"m":2,"b":3}}.

## When to prefer this

Choose this endpoint when you need a pure, deterministic, offline JSON key-sorting operation with no side effects — ideal for generating stable cache keys, preparing payloads for cryptographic hashing or signing, deduplication, or any scenario where consistent field ordering matters. Prefer it over general-purpose transformation services when you want a cheap ($0.003), fast, no-network call that guarantees the same output for the same input every time.

## Known failure modes

- Input is not valid JSON or a parseable object — returns an error indicating malformed input
- Input data field is missing or null — may return an error or an empty result
- Circular references in the input object may cause processing failure
- Extremely deeply nested objects may hit recursion limits

## How this service works

Recursively sort object keys and return canonical compact JSON. Deterministic, no network.

## Output

A compact JSON string with all object keys recursively sorted (alphabetically ascending, or descending if reverse=true). Nested objects at any depth have their keys sorted as well. The output is deterministic given the same input, with no whitespace padding.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {},
  "reverse": {
   "type": "boolean",
   "default": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grokzilla-json-sort-recursive-key-canonicalizer-4ce0ece3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grokzilla.shop](https://www.zero.xyz/host/grokzilla.shop/llms.txt)
