{"uid":"cap_E3F-tdIZyc3xc87U8FO5d","slug":"mat-web-data-toolkit-json-validator-8a9e2092","name":"Mat Web & Data Toolkit – JSON Validator","description":"Fetches a public web page and returns its title, meta description, outbound links and readable plain text as JSON.","url":"https://automatom.matt-d59.workers.dev/jsonvalidate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["json"],"properties":{"json":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"keys":2,"type":"object","bytes":17,"depth":2,"valid":true,"pretty":"{\n  \"a\": 1,\n  \"b\": [\n    1,\n    2\n  ]\n}"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KlB5ESBMyKZxM9BOiwoqb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON string and returns structural metadata including key count, depth, byte size, validity flag, and pretty-printed output.","exampleAgentPrompt":"Can you validate this JSON for me and tell me if it's valid, how many keys it has, and show me a pretty-printed version: '{\"name\":\"Alice\",\"age\":30}'?","exampleUseCases":[{"title":"Pre-send API payload check","prompt":"Before I POST this to the payment API, can you check that this JSON is valid and tell me its structure: '{\"amount\":100,\"currency\":\"USD\",\"recipient\":\"bob@example.com\"}'?"},{"title":"Debug malformed config file","prompt":"I think there's a syntax error in this JSON config — can you validate it and tell me if it's well-formed, and show me a clean pretty-printed version: '{\"host\":\"localhost\",\"port\":5432,\"db\":\"myapp\"}'?"},{"title":"Inspect nested JSON depth","prompt":"Can you tell me how deeply nested this JSON is and how many keys it has at the top level: '{\"user\":{\"profile\":{\"name\":\"Alice\",\"age\":30}},\"status\":\"active\"}'?"}],"resultDescription":"Returns a JSON object with: `valid` (boolean indicating JSON validity), `keys` (number of top-level keys), `depth` (nesting depth), `bytes` (byte size of the input), `type` (data type of the root element), and `pretty` (a pretty-printed string version of the parsed JSON).","failureModes":["Invalid or missing `json` query parameter returns an error response","Extremely large JSON payloads may exceed worker memory or timeout limits","Non-JSON strings will return valid=false with limited structural metadata","Network errors or Cloudflare worker failures may return a 5xx status"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, fast JSON validation and introspection tool — especially useful for checking payload validity before sending to downstream APIs, debugging malformed JSON, or understanding the structure of an unknown JSON blob without needing a full schema validator.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:49:56.499Z","isFirstParty":false,"canonicalSlug":"mat-web-data-toolkit-json-validator-8a9e2092"}