{"uid":"cap_auDVoiRY3STez4tCxjeHL","slug":"json-validate-and-pretty-print-2bfc411c","name":"JSON Validate and Pretty-Print","description":"Validate and pretty-print JSON","url":"https://x402render-u5vwpxpyua-uc.a.run.app/json-format","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"type":"string","description":"string"},"indent":{"type":"number","description":"number (optional)"}}},"responseSchema":null,"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_pSwmFuAs83BippVP43XUz","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 it formatted with configurable indentation","exampleAgentPrompt":"Can you validate and pretty-print this JSON string for me with 4 spaces of indentation: '{\"name\":\"Alice\",\"age\":30,\"active\":true}'?","exampleUseCases":[{"title":"Debug malformed API response","prompt":"I got this JSON back from an API and I'm not sure if it's valid — can you validate it and pretty-print it with 2-space indentation so I can read it? Here it is: '{\"user\":{\"id\":42,\"name\":\"Bob\",\"roles\":[\"admin\",\"editor\"]}}'"},{"title":"Readable config file review","prompt":"Format this minified JSON config with 4 spaces of indentation so I can review it properly: '{\"env\":\"production\",\"debug\":false,\"db\":{\"host\":\"localhost\",\"port\":5432}}'"},{"title":"Catch invalid JSON before deployment","prompt":"Before I deploy, can you check if this JSON is valid and show me a pretty-printed version with indentation of 2: '{\"apiKey\":\"abc123\",\"timeout\":30,\"retries\":}'?"}],"resultDescription":"Returns the validated and pretty-printed JSON string with the requested indentation applied, or an error message if the input JSON is not valid.","failureModes":["Invalid JSON input returns a parse/validation error","Missing required 'json' field causes a bad request error","Malformed indent value (non-numeric) may cause unexpected formatting or an error","Very large JSON strings may time out or exceed payload limits"],"whenToPreferThis":"Use this endpoint when you need both validation and human-readable formatting of a JSON string in a single step, especially when working with minified or compacted JSON that needs to be inspected or debugged. Prefer this over the sibling minify endpoint when readability (not compactness) is the goal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:57:18.728Z","isFirstParty":false}