# G-Forge Flatten JSON Pointer Map

> G-Forge Flatten JSON Pointer Map is a paid API for AI agents from api.getretold.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-24).

Flattens a nested JSON document into an RFC 6901 JSON Pointer-to-value map for easy inspection and field mapping

## Facts

- Endpoint: POST https://api.getretold.com/services/agent-auto-launch-flatten/invoke?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/g-forge-flatten-json-pointer-map-fd2166c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ORsgpeNx_G56kpf0OUduC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability g-forge-flatten-json-pointer-map-fd2166c6 -d '<json body>'
```

Example prompt: 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"]}.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "object",
   "required": [
    "document"
   ],
   "properties": {
    "document": {}
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/g-forge-flatten-json-pointer-map-fd2166c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.getretold.com](https://www.zero.xyz/host/api.getretold.com/llms.txt)
