{"uid":"cap_xC1BmVygeGw21LajDoSUd","slug":"signaldesk-ai-json-flatten-4f6eb3a3","name":"SignalDesk AI – JSON Flatten","description":"Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.","url":"https://x402-agent.kariguetoazul.workers.dev/api/json/flatten?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"description":"JSON value; bounded structure."}}},"responseSchema":{"type":"json","example":{"pointers":{"/items/0":1,"/items/1":2,"/user/name":"Ana"}}},"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_O57Zeh0HTcm85RBJnINkA","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":"Flattens a nested JSON value into a flat map of JSON Pointer paths to scalar values","exampleAgentPrompt":"Can you flatten this nested JSON for me so I get a flat map of JSON Pointer paths to values? Here's the data: {\"user\":{\"name\":\"Ana\",\"scores\":[1,2]}}","exampleUseCases":[{"title":"Normalize API response for indexing","prompt":"I got a deeply nested JSON response from an external API — can you flatten it into a simple path-to-value map so I can index every field easily? Here's the JSON: {\"order\":{\"id\":\"123\",\"items\":[{\"sku\":\"A1\",\"qty\":2}]}}"},{"title":"Extract all leaf values from config file","prompt":"I have a nested config object and I need to see every leaf value alongside its full JSON Pointer path. Can you flatten it? The config is: {\"server\":{\"host\":\"localhost\",\"port\":8080},\"db\":{\"name\":\"mydb\",\"pool\":5}}"},{"title":"Prepare nested data for spreadsheet export","prompt":"I need to turn this nested JSON into flat key-value pairs so I can load it into a spreadsheet — can you flatten it using JSON Pointer paths? Data: {\"product\":{\"name\":\"Widget\",\"dims\":{\"width\":10,\"height\":5}}}"}],"resultDescription":"Returns a JSON object with a 'pointers' field mapping each JSON Pointer path (e.g. '/items/0', '/user/name') to its corresponding scalar leaf value from the input structure","failureModes":["Overly large or deeply recursive JSON may exceed bounded execution limits and return an error","Malformed or non-JSON input returns a parsing error","Circular references in input JSON may cause processing failures","Input exceeding size quota returns a quota-exceeded error"],"whenToPreferThis":"Choose this endpoint when you need to decompose a nested JSON value into a flat, path-addressable representation using standard JSON Pointer notation. Prefer it over manual traversal code when running in an agent context where you need a one-call solution for normalizing arbitrary JSON depth into scalar key-value pairs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:40:59.829Z","isFirstParty":false,"canonicalSlug":"signaldesk-ai-json-flatten-4f6eb3a3"}