{"uid":"cap_1iHDuxD66xsrH_9ibHqnw","slug":"pennyrail-json-sort-keys-b45c6330","name":"PennyRail JSON Sort Keys","description":"Machine-readable settlement service","url":"https://pennyrail.vercel.app/api/f/json.sort-keys","method":"POST","headers":{},"bodySchema":{"type":"object","required":["input"],"properties":{"input":{"type":"object","description":"JSON value"}}},"responseSchema":{"type":"object","required":["operation","result"],"properties":{"result":{},"operation":{"type":"string"}},"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__bW72SOLql9jd65MyWPpq","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 alphabetically and returns the transformed result","exampleAgentPrompt":"Can you sort all the keys in this JSON object alphabetically: {\"zebra\": 1, \"apple\": 2, \"mango\": 3}?","exampleUseCases":[{"title":"Canonical JSON for cache key hashing","prompt":"I need to produce a stable, deterministic JSON string for hashing — can you sort all the keys in this object so the key order is always the same: {\"userId\": \"abc\", \"action\": \"buy\", \"timestamp\": 1700000000}?"},{"title":"Diffing two API responses","prompt":"Before I diff these two API responses, can you sort the keys alphabetically on this one so the structure matches the other: {\"status\": \"ok\", \"count\": 42, \"items\": []}?"},{"title":"Normalizing config files before version control","prompt":"Sort the keys in this config JSON alphabetically so it looks clean and consistent in git diffs: {\"timeout\": 30, \"retries\": 3, \"host\": \"localhost\", \"port\": 8080}?"}],"resultDescription":"Returns a JSON object with an 'operation' field indicating the action performed (e.g. 'sort-keys') and a 'result' field containing the original JSON object with all top-level keys sorted alphabetically.","failureModes":["Missing 'input' field in request body returns a validation error","Non-object JSON values (arrays, strings, numbers) may not be sortable and could return an error or unexpected result","Malformed JSON input causes a parse error","Payment failure via x402 protocol blocks the request before processing"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call microservice to sort JSON object keys alphabetically without setting up your own transformation pipeline. It is ideal for agents that need deterministic, canonicalized JSON key ordering for hashing, comparison, or storage normalization, and want to pay only per transformation without API keys or subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:44:56.155Z","isFirstParty":false}