{"uid":"cap_Y0j8GcqisPVhovJw30EC-","slug":"vextorium-json-inspector-7e458fc6","name":"Vextorium JSON Inspector","description":"Validate JSON (with line and column of the error), pretty-print or minify it, describe its structure (depth, keys, value types) and extract a value by path such as data.items[0].price.","url":"https://api.vextorium.com/v1/json-inspect?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"JSON text (up to 2 MB)"},"route":{"type":"string","description":"Path to extract, e.g. data.items[0].price (optional)"},"format":{"enum":["pretty","minified","none"],"type":"string"}}},"responseSchema":{"type":"json","example":{"bytes":43,"depth":4,"route":"data.items[0].price","valid":true,"value":3,"arrays":1,"objects":3,"formatted":"{\"data\":{\"items\":[{\"name\":\"A\",\"price\":3}]}}","root_type":"object","distinct_keys":["data","items"],"savings_bytes":0,"values_per_type":{"number":1,"string":1}}},"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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xgMfDGPxR2cOm-ODbkgOF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates, formats, structurally analyzes, and extracts values from JSON text by dot-bracket path","exampleAgentPrompt":"Can you validate this JSON for me and tell me if there are any errors with line and column info — and if it's valid, pretty-print it and extract the value at data.items[0].price: {\"data\":{\"items\":[{\"name\":\"A\",\"price\":3}]}}","exampleUseCases":[{"title":"Debugging malformed API response","prompt":"I'm getting a JSON parse error somewhere in this payload — can you validate it and tell me exactly which line and column the problem is on? Here's the JSON: {\"user\":{\"id\":123,\"name\":\"Alice\",\"roles\":[\"admin\",\"editor\"}}}"},{"title":"Extracting nested value from config","prompt":"From this JSON config blob, extract the value at settings.database.port for me: {\"settings\":{\"database\":{\"host\":\"localhost\",\"port\":5432,\"name\":\"mydb\"}}}"},{"title":"Minifying JSON before sending to API","prompt":"I need to minify this pretty-printed JSON before I send it in a request body — can you strip all the whitespace and tell me how many bytes I'll save? Here it is:\n{\n  \"event\": \"click\",\n  \"user\": \"alice\",\n  \"timestamp\": 1718000000\n}"}],"resultDescription":"A JSON object with: validity flag, error location (line/column) if invalid, formatted JSON string (pretty or minified), depth of nesting, count of objects and arrays, list of distinct keys, count of values by type (string, number, etc.), total byte size, byte savings from minification, and the extracted value at the requested path if a route was supplied.","failureModes":["Invalid or non-JSON text in body — returns valid:false with line/column of first syntax error","JSON payload exceeds 2 MB limit — request rejected","Malformed extraction path (e.g. non-existent key or out-of-bounds array index) — value field returns null","Missing required 'text' field in body — request fails with schema validation error","Network timeout on very large (near-limit) payloads"],"whenToPreferThis":"Choose this endpoint when you need to validate JSON with precise error location, inspect its structural properties (depth, key inventory, type distribution), format it for readability or transmission, or extract a deeply nested value by dot-bracket path — all in a single call. Prefer it over local JSON parsers when running in an agent environment without native code execution, or when you need the structural summary alongside validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:05.285Z","isFirstParty":false,"canonicalSlug":"vextorium-json-inspector-b0bcf000"}