{"uid":"cap_dbkIDeAPVj3gMeG85kMt1","slug":"kevaremesh-json-stable-canonicalize-13fd3052","name":"KEVAREMESH JSON Stable Canonicalize","description":"Buyer-first MCP procurement gateway that discovers, compares and routes live x402 APIs without making the buyer choose a provider.","url":"https://kevaremesh-web.vercel.app/api/x402/json-stable-canonicalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{}}},"responseSchema":{"type":"json","example":{"result":{"bytes":13,"sha256":"sha256_hex","algorithm":"kevaremesh-stable-json-v1","key_order":"lexicographic_utf16","canonical_json":"{\"a\":1,\"b\":2}","arrays_preserve_order":true},"product":"kevaremesh_json_stable_canonicalize_v2","service":"KEVAREMESH","tool_name":"kevaremesh_json_stable_canonicalize","limitations":["KEVAREMESH stable JSON v1; not advertised as RFC 8785/JCS"],"generated_at":"2026-09-18T00:00:00.000Z"}},"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_PKpNRYUx1WTESeUSo4iCT","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":"Converts any JSON value into a deterministic, lexicographically-ordered canonical JSON string and returns its byte length and SHA-256 hash.","exampleAgentPrompt":"Can you canonicalize this JSON object for me — {\"b\": 2, \"a\": 1} — sorting the keys lexicographically and giving me the stable canonical string along with its SHA-256 hash?","exampleUseCases":[{"title":"Sign a JSON payload deterministically","prompt":"I need to sign this JSON document and want a stable canonical form first — can you canonicalize {\"userId\":\"abc123\",\"amount\":50,\"currency\":\"USD\"} so the key order is deterministic and give me the SHA-256 hash I can sign?"},{"title":"Compare two JSON objects for equivalence","prompt":"Are these two JSON blobs logically identical? Canonicalize both {\"z\":9,\"a\":1} and {\"a\":1,\"z\":9} for me so I can compare their SHA-256 hashes."},{"title":"Generate reproducible JSON fingerprint","prompt":"I need a reproducible fingerprint of this nested JSON config {\"host\":\"example.com\",\"port\":443,\"tls\":true} — give me the canonical JSON string and its SHA-256 so I can detect any future changes."}],"resultDescription":"Returns a canonical JSON string with all object keys sorted in lexicographic UTF-16 order, arrays with preserved order, along with the byte length of the canonical output, the SHA-256 hex digest of that canonical string, and metadata including algorithm name and product identifier.","failureModes":["Invalid or malformed input that cannot be parsed as JSON returns an error","Extremely deeply nested or circular-reference objects may fail or time out","Network or payment gateway failures return HTTP 402 or 5xx errors","Missing or invalid x402 payment header causes authentication failure"],"whenToPreferThis":"Use this endpoint when you need a deterministic, reproducible canonical JSON string for cryptographic signing, content hashing, or equality comparison, and you want the output in the KEVAREMESH stable JSON v1 format (lexicographic UTF-16 key ordering). Note this is NOT RFC 8785/JCS-compliant, so prefer it for internal fingerprinting workflows rather than interoperability with JCS-mandating standards.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T18:31:09.740Z","isFirstParty":false,"canonicalSlug":"kevaremesh-json-stable-canonicalize-13fd3052"}