{"uid":"cap_Qi1kQtLlM2oefh0Nd9ZsV","slug":"moneytools-json-formatter-validator-path-query-a5e3b0a9","name":"MoneyTools JSON Formatter, Validator & Path Query","description":"JSON formatter, validator & path query: Validate JSON (error line + context), pretty-print/minify/sort keys, measure depth and size, and pick a value by path like a.b[0].c. Free tier 10/day; then $0.001 via x402 (HTTP 402 + PAYMENT-REQUIRED) or X-API-Key credits. Not charged on failure. $0.001 USDC per call via x402 on Base. Run by MoneyTools.","url":"https://tools.moneytools.dev/v1/json-format?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"type":"string","examples":["pretty"],"description":"pretty | minify"},"json":{"type":"string","examples":["{\"b\":1,\"a\":{\"c\":[1,2]}}"],"description":"JSON text"},"path":{"type":"string","examples":["a.c[1]"],"description":"e.g. a.c[1]"},"sortKeys":{"type":"boolean","examples":["true"],"description":"true/false"}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_fek-x6HOw03Oh-fSHULri","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates JSON with error location, pretty-prints/minifies/sorts keys, measures depth and size, and extracts values by dot-bracket path like a.b[0].c","exampleAgentPrompt":"Can you pretty-print this JSON for me and sort the keys alphabetically: {\"b\":1,\"a\":{\"c\":[1,2]}}? Also tell me if it's valid.","exampleUseCases":[{"title":"Debug malformed API response","prompt":"This JSON response from my API is throwing a parse error — can you validate it and tell me exactly which line the problem is on? Here it is: {\"user\":\"alice\",\"age\":30,\"tags\":[\"admin\",}"},{"title":"Minify JSON for network payload","prompt":"Minify this JSON so I can send it in a request body with minimal bytes: {\"name\": \"John\", \"age\": 30, \"address\": {\"city\": \"New York\", \"zip\": \"10001\"}}"},{"title":"Extract nested value by path","prompt":"Pull out the value at path a.c[1] from this JSON: {\"b\":1,\"a\":{\"c\":[1,2]}}"}],"resultDescription":"Returns the processed JSON output based on the operation: pretty-printed or minified JSON text, validation status with error line number and context if invalid, the value at the specified path if a path query was requested, plus metadata like JSON depth and byte size.","failureModes":["Invalid JSON input returns error with line number and surrounding context rather than processed output","Malformed path expression returns an error indicating the path could not be resolved","Missing required fields (json or op) return a 400-style validation error","Free tier exhausted (10 calls/day) returns HTTP 402 requiring x402 micropayment or API key credits","Network or server errors return 5xx responses"],"whenToPreferThis":"Choose this endpoint when you need fast, lightweight JSON processing — validation with precise error location, formatting, minification, key sorting, or path-based value extraction — without standing up a local JSON library. Especially useful in agent pipelines where JSON from external APIs needs to be validated or normalized before further processing, and the $0.001 per-call cost is acceptable for the convenience.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:34:47.827Z","isFirstParty":false,"canonicalSlug":"moneytools-json-formatter-validator-path-query-a5e3b0a9"}