{"uid":"cap_7VHNMKljLKJxR4_L4FLD3","slug":"json-path-value-extractor-7b0d5ce0","name":"JSON Path Value Extractor","description":"Extract one value from JSON by a simple path such as a.b[0].c, with its type; reports exactly where a path breaks.","url":"https://json-data-tools.x402tookit.com/json-path?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"],"type":"string"},"queryParams":{"type":"object","required":["json","path"],"properties":{"json":{"type":"string","description":"The JSON text"},"path":{"type":"string","description":"Path like $.users[0].name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":["null","string"]},"type":{"type":["null","string"]},"value":{"type":["null","string"]},"source":{"type":["null","string"]},"reasons":{"type":["array","null"]},"summary":{"type":["null","string"]},"verdict":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"notChecked":{"type":["array","null"],"items":{"type":"string"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DiUkZdcCwvRNDxn7ZL8nu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts a single value from a JSON document by a dot/bracket path expression, returning the value and its type, with precise error reporting if the path breaks.","exampleAgentPrompt":"From this JSON — {\"users\":[{\"name\":\"Alice\",\"age\":30},{\"name\":\"Bob\",\"age\":25}]} — extract the value at path $.users[0].name and tell me what type it is.","exampleUseCases":[{"title":"Extract nested API response field","prompt":"I got this JSON back from an API: {\"order\":{\"id\":\"abc123\",\"status\":\"shipped\",\"tracking\":{\"carrier\":\"UPS\",\"number\":\"1Z999\"}}} — can you pull out the value at path $.order.tracking.number for me?"},{"title":"Debug a broken JSON path","prompt":"I'm trying to read $.config.database.host from this JSON but it keeps failing — can you tell me exactly where the path breaks? The JSON is {\"config\":{\"app\":{\"port\":8080}}}"},{"title":"Extract array element from JSON payload","prompt":"Here's a JSON blob: {\"results\":[{\"score\":0.95,\"label\":\"cat\"},{\"score\":0.82,\"label\":\"dog\"}]} — what's the value and type at $.results[1].label?"}],"resultDescription":"Returns the extracted value as a string, its data type (string, number, boolean, null, object, array), and the source path. If the path does not resolve, reports exactly where it breaks — which segment failed and what was found instead.","failureModes":["Invalid JSON input — returns parse error with position","Path does not exist — reports exactly which segment of the path broke and what was found at that point","Malformed path expression — returns error describing invalid path syntax","Empty json or path parameters — returns validation error","Array index out of bounds — reports the index and actual array length"],"whenToPreferThis":"Choose this endpoint when you need to extract a single, specific value from a JSON document using a path expression and want precise diagnostics if the path fails. It is ideal for processing API responses, debugging pipeline data, or safely navigating deeply nested structures where you need the type alongside the value. Prefer it over full JSON parsing or transformation endpoints when you only need one targeted field and clear error location reporting.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:13:48.375Z","isFirstParty":false,"canonicalSlug":"json-path-value-extractor-7b0d5ce0"}