{"uid":"cap_VkSTVDuPDleF1q0PmA_h9","slug":"json-toolbox-c052119b","name":"JSON Toolbox","description":"Validate JSON (with line and column of errors), pretty-print, minify, sort keys, list all paths, show its shape, or extract a value by path like $.items[0].name or $.items[*].","url":"https://bess-x402.onrender.com/v1/util/json?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["data"],"properties":{"data":{"type":"string","description":"JSON text"},"path":{"type":"string","description":"Path for extract, e.g. $.a[0].b"},"operation":{"type":"string","description":"validate, pretty, minify, sort_keys, shape, paths or extract"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AJ3Cebf9jsNJFmfl208_g","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validate, pretty-print, minify, sort keys, list all paths, show shape, or extract a value from JSON text by JSONPath expression","exampleAgentPrompt":"Can you validate this JSON and tell me exactly where the error is: '{\"name\": \"Alice\", \"age\": 30, \"items\": [1, 2,]}'? Use the validate operation.","exampleUseCases":[{"title":"Debug malformed API response","prompt":"I got this JSON back from an API call and something looks wrong — can you validate it and tell me the exact line and column of any errors? Here it is: '{\"users\":[{\"id\":1,\"name\":\"Bob\"},{\"id\":2,\"name\":}'"},{"title":"Extract nested values with wildcard path","prompt":"From this JSON document, extract all product names using the path $.products[*].name — I want to see every item's name in the list."},{"title":"Clean up JSON for readability","prompt":"Can you pretty-print this minified JSON so I can read it properly? '{\"a\":1,\"b\":{\"c\":2,\"d\":[3,4,5]}}'"}],"resultDescription":"Returns the result of the requested JSON operation: for 'validate', a list of syntax errors with line and column numbers (or confirmation it's valid); for 'pretty', a human-readable indented string; for 'minify', a compact single-line string; for 'sort_keys', JSON with keys sorted alphabetically at every level; for 'paths', a list of all JSONPath expressions present in the document; for 'shape', a structural skeleton showing types; for 'extract', the value(s) matched by the given JSONPath expression.","failureModes":["Missing 'data' query parameter returns an error","Invalid operation name returns an error indicating the allowed operations","'extract' operation without a 'path' parameter returns an error","Extremely large JSON payloads may time out or be rejected","The path expression is syntactically invalid, returning a path parse error"],"whenToPreferThis":"Use this endpoint when you need to inspect, debug, or transform raw JSON strings — especially when you need precise error locations for invalid JSON, or want to extract values without writing custom parsing code. Prefer this over general-purpose code execution when you want a lightweight, stateless JSON utility without spinning up a runtime environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:14:10.324Z","isFirstParty":false,"canonicalSlug":"json-toolbox-c052119b"}