{"uid":"cap_D89Fe8M50c-tfaEm9Mo48","slug":"json-object-sort-keys-e30a0f50","name":"JSON Object Sort Keys","description":"JSON Object Sort Keys: JSON Object Sort Keys returns a top-level JSON object with deterministic key order from bounded caller-supplied values without an external provider. Call JSON Object Sort Keys before an agent hands structured data or a batch plan to a downstream tool with a stricter contract. Returns the bounded transformation or validation finding with counts, normalized values, and a versioned result contract for JSON Object Sort Keys as versioned deterministic JSON. Price: $0.001 USDC…","url":"https://api.delx.ai/api/v1/x402/json-object-sort-keys","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"object":{"type":"object","description":"Object supplied to JSON Object Sort Keys; used only for this bounded calculation and processed in memory without retention.","maxProperties":128,"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"result":{"object":{"a":1,"b":2}},"schema":"delx/util-json-object-sort-keys/v1","status":"pass","evidence":{"retained":false,"input_sha256":"2fd1739c776c376dda0799d0fc33b1035ca1fae723be64a512059abbf5471691","external_calls":0},"operation":"data_batch:json_object_sort_keys"}},"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_n3TDQbQ2SbRvmPWcWKP_Y","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 top-level JSON object into deterministic alphabetical order and returns the reordered object.","exampleAgentPrompt":"Sort the keys of this JSON object into alphabetical order so the output is deterministic: {\"zebra\": 1, \"apple\": 2, \"mango\": 3}.","exampleUseCases":[{"title":"Stable payload before downstream tool","prompt":"Before handing this config object to the schema validator, sort its keys alphabetically so the key order is always deterministic: {\"timeout\": 30, \"retries\": 3, \"endpoint\": \"https://api.example.com\"}."},{"title":"Reproducible hash of JSON object","prompt":"I need to compute a consistent hash of this JSON object — can you sort its keys first so the order never varies between runs? The object is {\"user\": \"alice\", \"role\": \"admin\", \"created\": 1700000000}."},{"title":"Normalize API response keys for diff","prompt":"I'm comparing two versions of an API response and the key order keeps changing. Sort the keys of this object so I can do a clean diff: {\"status\": \"ok\", \"data\": null, \"code\": 200}."}],"resultDescription":"Returns the input JSON object with its top-level keys reordered in deterministic (alphabetical) order, along with metadata such as key counts, normalized values, and a versioned result contract. The response is structured deterministic JSON.","failureModes":["Object exceeds 128 top-level properties — request rejected with validation error","Input is not a valid JSON object (e.g. array or primitive) — type error returned","Malformed request body — 400 bad request","Payment not included or insufficient — 402 payment required","Network timeout or server unavailability — 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fast, cheap, stateless, and deterministic sort of a JSON object's top-level keys — especially before passing structured data to a downstream tool with a strict key-order contract, computing a canonical hash, or performing reliable diffs. It is preferable over rolling your own sort logic when you want a versioned, auditable result contract with counts and normalization metadata.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:04:20.589Z","isFirstParty":false}