{"uid":"cap_Gg-SAcW1G2zY2dANum5Z6","slug":"pennyrail-json-sort-keys-stable-38243c54","name":"PennyRail JSON Sort Keys (Stable)","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/p/nano/json.sort-keys--stable-json","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QXzcTiLBnDXIhyjtxGcto","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sorts the keys of a JSON object into a stable, deterministic order and returns the canonicalized result","exampleAgentPrompt":"Sort all the keys in this JSON object into stable alphabetical order and give me back the canonicalized version: {\"zebra\": 1, \"apple\": 2, \"mango\": 3}.","exampleUseCases":[{"title":"Deterministic hashing before signing","prompt":"Before I sign this payload, sort all its keys into a stable alphabetical order so the hash is always the same regardless of how the object was constructed: {\"userId\":\"abc\",\"amount\":100,\"currency\":\"USD\"}."},{"title":"Normalize API response for diffing","prompt":"I'm comparing two API responses and the keys come back in random order each time — can you sort all the keys stably so I can do a clean diff between them?"},{"title":"Canonical JSON for cache keying","prompt":"Take this config object and return it with all keys sorted so I can use it as a consistent cache key: {\"timeout\":30,\"retries\":3,\"host\":\"example.com\"}."}],"resultDescription":"Returns the input JSON object with all keys (including nested keys, depending on implementation) sorted into stable alphabetical order. The response is a JSON object with the same values but deterministically ordered keys, suitable for hashing, signing, diffing, or caching.","failureModes":["Missing or malformed 'input' field returns a validation error","Non-object input (e.g. array or primitive) may return an error or unexpected result","Deeply nested structures may not have nested keys sorted if only top-level sorting is supported","Payment failure or insufficient USDC balance results in HTTP 402 and no transformation","Network timeout on the Vercel edge function returns 5xx"],"whenToPreferThis":"Choose this endpoint when you need a paid, on-demand, machine-readable service to produce stable, canonically key-sorted JSON — particularly useful in pipelines requiring deterministic serialization before hashing, signing, or deduplication. Prefer it over local sorting when operating in an agent or serverless context without access to a local runtime, or when you need a neutral third-party canonical form for auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:18:39.479Z","isFirstParty":false}