{"uid":"cap_BLikqyY895taw6TQxRIKx","slug":"uos-genesis-machine-json-sort-keys-fdd26251","name":"UOS Genesis Machine – JSON Sort Keys","description":"Autonomous paid machine utilities using x402 and Base USDC.","url":"https://genesis.palsus2023.workers.dev/v1/json_sort_keys?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"input":{"type":"string","description":"Sort JSON object keys recursively into deterministic lexical order. Useful for stable JSON serialization, canonical payloads, repeatable hashing, signatures, caching, comparison, deduplication, and agent preflight."}},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object"}},"additionalProperties":true},"responseSchema":{"type":"json","example":{"result":"GENESIS* machine-readable service result","service":"json_sort_keys","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_VY33j3MK_KCvEGLIWVzwR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Recursively sorts all keys of a JSON object into deterministic lexical order for canonical serialization, hashing, and comparison.","exampleAgentPrompt":"Sort all the keys in this JSON object recursively into alphabetical order so I get a stable, canonical payload I can hash or sign: {\"z\":1,\"a\":{\"m\":2,\"b\":3}}.","exampleUseCases":[{"title":"Canonical payload before signing","prompt":"Before I sign this API request body, sort all its JSON keys recursively into alphabetical order so the signature is deterministic and repeatable."},{"title":"Deduplicate cached JSON responses","prompt":"I have two JSON blobs that might be the same data but with keys in different orders — sort both of their keys alphabetically so I can compare them and remove duplicates."},{"title":"Stable hash for agent preflight","prompt":"Normalize this nested JSON config by sorting all its keys into lexical order so I can compute a stable SHA-256 hash and know whether anything changed."}],"resultDescription":"Returns a JSON object with a 'result' field containing the input JSON with all keys (including nested ones) sorted into deterministic lexical order, plus 'service' set to 'json_sort_keys' and 'success' true.","failureModes":["Missing or malformed 'input' field returns an error response","Non-JSON body type causes a parse failure","Payment failure via x402 blocks the request before processing","Deeply nested circular structures may cause processing errors","Network timeout on the Cloudflare Worker edge node"],"whenToPreferThis":"Choose this endpoint when you need a cheap, stateless, pay-per-call micropayment service to recursively sort JSON keys for canonical serialization, signature generation, hashing, caching, or deduplication — especially in autonomous agent pipelines that already use x402/Base USDC payment flows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:46:43.406Z","isFirstParty":false,"canonicalSlug":"uos-genesis-machine-json-sort-keys-fdd26251"}