{"uid":"cap_a4JN4po6rpWOEz13tz27k","slug":"agent-dev-tools-json-validate-format-fe1e8adc","name":"Agent Dev Tools – JSON Validate & Format","description":"Fast deterministic developer utilities for AI agents, paid per call in USDC via x402 (no account, no API key): UUID v4/v7, secure random numbers, dice, MD5/SHA/HMAC hashing, base64/hex/URL/HTML encoding, JSON validation/formatting, QR code SVG, password generation, JWT decoding and text statistics. Pure computation, nothing stored. Errors are never charged.","url":"https://agent-dev-tools.frcompanycheck.workers.dev/v1/json/validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"type":"string","description":"The JSON text to validate (a string)"},"indent":{"type":"integer","description":"Pretty-print indent 0-8 (default 2)"}}},"responseSchema":{"type":"json","example":{"type":"object","stats":{"nodes":6,"max_depth":2,"object_keys":2},"valid":true,"pretty":"{\n  \"a\": 1 ...","minified":"{\"a\":1,\"b\":[1,2,3]}"}},"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_M5dMzKyFR_w-upkWzLZv6","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 a JSON string and returns its type, structural stats, pretty-printed form, and minified form","exampleAgentPrompt":"Can you check if this JSON is valid and give me a pretty-printed version with 2-space indentation: '{\"name\":\"Alice\",\"scores\":[10,20,30]}'?","exampleUseCases":[{"title":"Validate API response payload","prompt":"I just got this JSON back from an external API and I'm not sure it's well-formed — can you validate it and tell me how deeply nested it is? Here it is: '{\"user\":{\"id\":42,\"roles\":[\"admin\",\"editor\"]}}'"},{"title":"Minify JSON for storage","prompt":"Take this pretty-printed JSON config and give me the minified version so I can store it compactly: '{\\n  \"host\": \"localhost\",\\n  \"port\": 5432,\\n  \"ssl\": true\\n}'"},{"title":"Debug malformed JSON in pipeline","prompt":"My data pipeline is throwing a JSON parse error — can you check whether this string is valid JSON and show me the pretty version so I can spot the problem? String: '{\"items\":[1,2,3,\"status\":\"ok\"}'"}],"resultDescription":"Returns a JSON object with: `valid` (boolean), `type` (JSON root type like 'object' or 'array'), `stats` (node count, max depth, object key count), `pretty` (indented string), and `minified` (compact string). If invalid, returns an error description without charging.","failureModes":["Invalid or unparseable JSON input returns a validation error with no charge","Missing required `json` field returns a 400-level error","Indent value outside 0–8 range may be rejected or clamped","Extremely large JSON strings may time out or exceed worker limits"],"whenToPreferThis":"Use this endpoint when you need fast, stateless JSON validation or formatting without setting up an account or API key — especially inside an AI agent pipeline that already handles x402 micropayments. Ideal for one-off checks, CI tooling, or agent workflows where JSON correctness needs to be verified before downstream processing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T06:32:58.093Z","isFirstParty":false,"canonicalSlug":"agent-dev-tools-json-validate-format-fe1e8adc"}