{"uid":"cap_xjsZbDz85_u6H29eYx16z","slug":"json-sort-keys-transform-263d2001","name":"JSON Sort Keys Transform","description":"Call when an agent needs JSON rewritten with the sort-keys transform. No network. Exact $0.002 USDC. Prefer unpaid POST /v1/sandbox/json-sort-keys first.","url":"https://agentshelf.syntexa.ch/v1/json-sort-keys?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","examples":["{\"b\":1,\"a\":2}"],"maxLength":100000,"minLength":1,"description":"Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_eum6nyx-W0MPNZRKJ0RQu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rewrites a JSON string with all object keys sorted alphabetically at every nesting level","exampleAgentPrompt":"Can you sort all the keys in this JSON alphabetically, including nested objects? Here's the JSON: {\"zebra\":1,\"apple\":{\"mango\":2,\"banana\":3}}","exampleUseCases":[{"title":"Normalize JSON for diff comparison","prompt":"I'm comparing two JSON configs and the key order keeps changing between versions — can you sort all the keys alphabetically in this JSON so I can do a clean diff? Here it is: {\"timeout\":30,\"host\":\"localhost\",\"port\":8080,\"retries\":3}"},{"title":"Canonicalize API response for testing","prompt":"I need to canonicalize this API response JSON so our snapshot tests don't fail due to key ordering differences — please sort all the keys recursively: {\"user\":{\"role\":\"admin\",\"name\":\"Alice\",\"id\":42},\"status\":\"ok\"}"},{"title":"Standardize config file key order","prompt":"Our team keeps committing JSON config files with keys in random order — can you sort all the keys alphabetically in this JSON so we can set a consistent standard? {\"verbose\":false,\"outputDir\":\"/tmp\",\"inputDir\":\"/data\",\"maxWorkers\":4}"}],"resultDescription":"A JSON string identical in structure and values to the input, but with all object keys sorted alphabetically at every nesting level. Arrays maintain their original order; only object key ordering is changed.","failureModes":["Invalid JSON input returns an error indicating the text could not be parsed","Input exceeding 100,000 characters is rejected","Empty string input is rejected due to minLength:1 constraint","Payment of exactly $0.002 USDC required; incorrect payment amount results in payment failure"],"whenToPreferThis":"Use this endpoint when you need a pure, offline, deterministic alphabetical sort of JSON object keys with no external network calls. It is ideal for canonicalizing JSON for diffing, snapshot testing, or standardization. Prefer the free unpaid endpoint at POST /v1/sandbox/json-sort-keys if available to avoid the $0.002 USDC cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:21.762Z","isFirstParty":false,"canonicalSlug":"json-sort-keys-transform-263d2001"}