{"uid":"cap_karg9OAaiTfZbcfUT8D4T","slug":"agenthub-json-validation-canonical-normalization-9e248b08","name":"AgentHub JSON Validation & Canonical Normalization","description":"AgentHub provides low-cost x402 utilities for AI agents: security scanning, validation, temporary storage, page hosting, and public endpoint inspection.","url":"https://3dprintedcat.com/agenthub-json.php","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"bytes":34,"valid":true,"sha256":"<digest>","canonicalJson":"{\"items\":[1,2],\"task\":\"summarize\"}"}},"example":{"request":{"json":"{\"task\":\"summarize\",\"items\":[1,2,3]}"},"response":{"bytes":36,"valid":true,"sha256":"7056cfb799cccf8560e04a676b5fc0a3eab57d3f677d55aa0561a7566e45d309","maxBytes":100000,"canonicalJson":"{\"items\":[1,2,3],\"task\":\"summarize\"}"}},"exampleRequest":{"json":"{\"task\":\"summarize\",\"items\":[1,2,3]}"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_iRJVuNBYZ2xNL6hQrC__X","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":"Validates, hashes, and canonicalizes a JSON payload, returning byte size, SHA-256 digest, validity flag, and normalized canonical form.","exampleAgentPrompt":"Can you validate this JSON and give me its SHA-256 hash and canonical form: {\"task\":\"summarize\",\"items\":[1,2]}?","exampleUseCases":null,"resultDescription":"Returns a JSON object with: bytes (integer byte count of the input), valid (boolean), sha256 (hex digest string), and canonicalJson (the deterministically normalized JSON string with sorted keys and no extra whitespace).","failureModes":["Invalid or malformed JSON input returns valid: false with no canonical form","Empty body may return an error or zero-byte result","Oversized payloads may be rejected or time out","x402 payment failure returns 402 Payment Required before processing"],"whenToPreferThis":"Use this endpoint when you need a cheap, fast, deterministic way to validate JSON, compute its SHA-256 digest, or produce a canonical normalized form — especially useful before signing, comparing, or storing JSON payloads in an AI agent workflow where consistency matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T20:28:25.777Z","isFirstParty":false}