{"uid":"cap_ORsgpeNx_G56kpf0OUduC","slug":"g-forge-flatten-json-pointer-map-fd2166c6","name":"G-Forge Flatten JSON Pointer Map","description":"Make nested JSON easier to inspect and map. Flatten objects and arrays into an RFC 6901 pointer-to-value map for data inspection and field mapping. Slash and tilde keys are escaped; empty objects and arrays are preserved. This returns a map, not CSV or a flattened table.","url":"https://api.getretold.com/services/agent-auto-launch-flatten/invoke?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"object","required":["document"],"properties":{"document":{}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ou9awJ55aMY_HYEX775VG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 document into an RFC 6901 JSON Pointer-to-value map for easy inspection and field mapping","exampleAgentPrompt":"Take this nested JSON document and flatten it into an RFC 6901 pointer-to-value map so I can see every field path and its value in one place: {\"user\":{\"name\":\"Alice\",\"address\":{\"city\":\"Berlin\",\"zip\":\"10115\"}},\"tags\":[\"admin\",\"editor\"]}.","exampleUseCases":[{"title":"Debugging a nested API response","prompt":"I just got this deeply nested API response back and I need to see every single field and its value laid out flat — can you flatten it into a JSON Pointer map so I can inspect what's in there?"},{"title":"Mapping fields between two API schemas","prompt":"I need to match fields from our internal user object to a third-party schema. Can you flatten this nested user JSON into an RFC 6901 pointer map so I can see every path and figure out the field mappings?"},{"title":"Auditing a complex configuration file","prompt":"Here's our app config JSON — it's got a bunch of nesting. Can you flatten it into a pointer-to-value map so I can audit every setting and its current value without digging through layers of nesting?"}],"resultDescription":"A JSON object where each key is an RFC 6901 JSON Pointer string (e.g. '/user/address/city') and each value is the corresponding scalar value from the original document. Slash and tilde characters in keys are properly escaped per the RFC. Empty objects and empty arrays are preserved as entries in the map rather than being dropped.","failureModes":["Invalid or non-object input document returns an error","Extremely deeply nested structures may hit recursion or size limits","Non-JSON input will be rejected","Malformed JSON in the document field will produce a parse error"],"whenToPreferThis":"Choose this endpoint when you need to enumerate every field path in a nested JSON document as RFC 6901 pointers — ideal for field mapping between APIs, data inspection, configuration auditing, or preparing inputs for JSON Patch/Pointer operations. Prefer this over CSV flattening when you need pointer-addressable paths rather than column names, and over JSON extraction when you need all paths at once rather than a single targeted value.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:36:31.217Z","isFirstParty":false,"canonicalSlug":"g-forge-flatten-json-pointer-map-fd2166c6"}