{"uid":"cap_1ifhnL_aau8mOjJxlaHGX","slug":"agent402-tools-json-query-cd225a4c","name":"agent402.tools JSON Query","description":"Extract a value from JSON by dot/bracket path, e.g. \"items[2].name\".","url":"https://agent402.tools/api/json-query","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"json":{"description":"JSON value (or a JSON string of one)"},"path":{"type":"string","description":"Path like \"a.b[0].c\""}}},"responseSchema":{"type":"json","example":{"found":true,"value":"b"}},"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_-8ka5Z3KHc0jR-ioKIJcL","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":"Extracts a value from a JSON object using a dot/bracket path expression (e.g. 'items[2].name').","exampleAgentPrompt":"From this JSON blob, extract the value at 'user.addresses[1].city': {\"user\":{\"name\":\"Alice\",\"addresses\":[{\"city\":\"New York\"},{\"city\":\"Boston\"}]}}.","exampleUseCases":null,"resultDescription":"Returns the value found at the specified path within the provided JSON — could be a string, number, boolean, array, or nested object depending on what lives at that path.","failureModes":["Path not found in JSON — returns null or error indicating missing key","Malformed JSON input — returns parse error","Invalid path syntax — returns error indicating bad path expression","Type mismatch when traversing — e.g. trying to index into a non-array"],"whenToPreferThis":"Use this endpoint when you need to extract a specific field from a JSON blob using a known path, especially in agent pipelines where you receive raw JSON responses and need to pluck out a particular nested value without writing custom code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:03.348Z","isFirstParty":false}