{"uid":"cap_ixyxk8BcXTSj40SYxSOPh","slug":"httpay-json-format-validator-f35ec17e","name":"HTTPay JSON Format & Validator","description":"307 pay-per-call APIs (287 native + Universal Gateway proxying 37 services) powered by x402 and USDC on Base. Token intelligence, DeFi yields, MEV risk, AI tools, web scraping. No API keys, no subscriptions — pay $0.001–$0.05 per call.","url":"https://httpay.xyz/api/json-format","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"description":"Pretty-print and validate JSON. POST JSON body: {json, indent}. 'json' can be a string or object. 'indent' is spaces (default 2, max 8). Returns formatted JSON string and structure info. Uses Node.js built-in JSON."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nlFKKSJAwkEmXbizcgCrg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pretty-prints and validates a JSON string or object, returning formatted output with configurable indentation and structure info","exampleAgentPrompt":"Can you pretty-print this JSON for me with 4-space indentation and tell me if it's valid: {\"name\":\"Alice\",\"age\":30,\"active\":true}?","exampleUseCases":null,"resultDescription":"Returns the formatted JSON string with the requested indentation (default 2 spaces, max 8), plus structural metadata about the JSON (e.g. type, key count, nesting depth). Validation errors are surfaced if the input is malformed.","failureModes":["Malformed JSON input returns a parse error indicating invalid JSON","Indent value exceeding 8 is clamped or rejected","Empty body returns an error about missing 'json' field","Non-JSON content type may cause parsing failure"],"whenToPreferThis":"Use this endpoint when you need a quick, no-auth, micropayment-based JSON formatting and validation call — ideal for agents that need to clean up or inspect JSON blobs on the fly without setting up API keys or subscriptions. Pay only $0.001 USDC per call via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:55:36.226Z","isFirstParty":false}