{"uid":"cap_Ax4szqSTuIF6BtZHwF_lY","slug":"json-tools-api-validate-format-minify-list-keys-infer-schema-93d4b4e9","name":"JSON Tools API (Validate, Format, Minify, List Keys, Infer Schema)","description":"JSON tools: validate, format, minify, list keys, infer JSON schema. Pass ?op=&data=. Pay-per-call in USDC.","url":"https://build-4c941cab041172e9439ece2f.emblem.build/pub/tasks/x402-onchain/api/json","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_C7hXNcSf40K6CKB5oacoX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates, formats, minifies, lists keys of, or infers a JSON schema from a provided JSON string, with pay-per-call USDC billing.","exampleAgentPrompt":"Can you validate this JSON and then pretty-print it for me: {\"name\":\"Alice\",\"age\":30,\"active\":true}?","exampleUseCases":[{"title":"Validate API response payload","prompt":"Check if this JSON is valid before I send it to the downstream service: {\"user_id\":\"abc123\",\"score\":99,\"tags\":[\"vip\",\"beta\"]}"},{"title":"Infer schema from sample data","prompt":"I have this sample JSON object and I need a JSON schema definition for it — can you infer the schema from {\"product\":\"widget\",\"price\":4.99,\"in_stock\":true}?"},{"title":"Minify JSON for embedding","prompt":"Minify this JSON so I can embed it compactly in a config file: {\"host\": \"localhost\", \"port\": 8080, \"debug\": false, \"timeout\": 30}"}],"resultDescription":"Depending on the operation: a boolean validity result with error details (validate), a pretty-printed JSON string (format), a compacted single-line JSON string (minify), an array of top-level key names (list keys), or a JSON Schema object inferred from the input data (infer schema).","failureModes":["Invalid or unparseable JSON input returns a validation error message","Missing required query parameters (op or data) returns a 400-style error","Unknown operation value for op parameter returns an unsupported operation error","Malformed request body or encoding issues may cause parse failures","Payment failure or insufficient USDC balance blocks the call"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call JSON utility without spinning up a local library — especially useful for agents operating in serverless or sandboxed environments where importing a JSON processing library isn't practical. It covers five common JSON operations in a single API, making it efficient for quick one-off tasks like validating a payload before forwarding it, or inferring a schema from an unknown data sample.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:41:46.197Z","isFirstParty":false}