{"uid":"cap_vsOhf5cgv-ailbDoAJUFW","slug":"agent-prep-json-path-listing-4e195aad","name":"Agent Prep – JSON Path Listing","description":"Pre-LLM utilities for AI agents: structural JSON diff, JSON path listing, token estimation, text chunking, and truncation. Pay with USDC via x402 — no API keys.","url":"https://agent-prep.annushka1190.workers.dev/v1/json/paths","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"body":{"type":"object"},"type":{"const":"http"},"method":{"enum":["POST"]},"bodyType":{"const":"json"}}}}},"responseSchema":{"type":"json","example":{"paths":[{"path":"a","type":"number","value":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_22JKHQyWPc7zj32QzSA7j","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Enumerates all JSON paths, their types, and values from an arbitrary JSON object, returning a flat list of dot-notation paths.","exampleAgentPrompt":"Can you give me a flat list of every JSON path, its type, and value from this object: {\"user\":{\"id\":42,\"name\":\"Alice\",\"address\":{\"city\":\"London\"}}}?","exampleUseCases":[{"title":"Pre-processing API response for LLM","prompt":"I got a deeply nested JSON back from an API and I want to feed only the relevant fields to my LLM — can you list every path, type, and value in it so I can see what's there? Here's the object: {\"order\":{\"id\":\"abc123\",\"items\":[{\"sku\":\"X1\",\"qty\":2}],\"status\":\"pending\"}}"},{"title":"Debugging unknown JSON schema","prompt":"I have a JSON blob from a third-party service and I have no idea what fields it contains — can you enumerate all the paths and their types so I can understand its structure? The object is: {\"meta\":{\"page\":1,\"total\":500},\"results\":{\"data\":{\"score\":0.92,\"label\":\"positive\"}}}"},{"title":"Building a field selector for data pipeline","prompt":"Before I set up my data pipeline, I need a full list of every dot-notation path in this config JSON with its type and current value: {\"pipeline\":{\"source\":\"s3\",\"destination\":\"bigquery\",\"options\":{\"batchSize\":1000,\"retry\":true}}}"}],"resultDescription":"Returns a JSON object with a 'paths' array. Each element contains a 'path' (dot-notation string key), 'type' (the JSON type of the value, e.g. number, string, boolean, object, array), and 'value' (the actual value at that path). This gives a fully flattened, traversable map of the input JSON structure.","failureModes":["Missing 'input' field in request body returns a validation error","Non-object body (array or primitive) may not be supported as top-level input","Deeply nested or very large JSON objects may exceed processing limits","Invalid JSON in the request body will return a parse error","Payment not included or incorrect USDC amount will result in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need to programmatically enumerate all paths in an arbitrary or unknown JSON structure before passing data to an LLM — especially when you want to inspect field names, types, and values without writing custom traversal code. Ideal for pre-processing API responses, debugging unfamiliar schemas, or building field selectors for pipelines. Prefer it over manual parsing when the JSON depth or shape is unknown and you need a flat, inspectable list quickly.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:35:34.502Z","isFirstParty":false}