{"uid":"cap_xbF1P2kJVQhM3eCVJMISs","slug":"ccc-tools-json-formatter-9bcf5134","name":"CCC Tools JSON Formatter","description":"Developer utilities via x402 micropayments. QR code generation, markdown-to-HTML conversion, base64 encoding/decoding, hash generation (SHA256/SHA512/MD5), text statistics, and JSON formatting.","url":"https://ccc-tools-phi.vercel.app/api/json-format","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"mode":{"type":"string","description":"format, minify, or validate"},"text":{"type":"string","description":"JSON string to process"}}},"responseSchema":null,"example":{"request":{"mode":"format","text":"{\"name\":\"Alice\",\"age\":30,\"skills\":[\"js\",\"python\"]}"},"response":{"age":30,"name":"Alice","skills":["js","python"]}},"exampleRequest":{"mode":"format","text":"{\"name\":\"Alice\",\"age\":30,\"skills\":[\"js\",\"python\"]}"},"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BHYW72_BWoTLUS0fQPfhv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats, minifies, or validates a JSON string via a micropayment-gated API","exampleAgentPrompt":"Can you format this JSON so it's properly indented and easy to read: '{\"name\":\"Alice\",\"age\":30,\"skills\":[\"js\",\"python\"]}'? Use format mode.","exampleUseCases":null,"resultDescription":"Returns the processed JSON string — either prettified with indentation (format mode), compacted onto one line (minify mode), or a validation status indicating whether the input is valid JSON (validate mode).","failureModes":["Invalid JSON input may return a validation error or malformed response","Missing required 'text' parameter causes a bad request error","Invalid 'mode' value (not format/minify/validate) may return an error or unexpected result","Payment failure via x402 protocol blocks the request with a 402 response","Empty or null text input may yield an error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically format, minify, or validate a JSON string on the fly without relying on local code execution. Particularly useful in no-code or agent-based workflows where x402 micropayments are already integrated and a lightweight, hosted JSON utility is preferred.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:45:19.335Z","isFirstParty":false}