Flatten JSON to Dot-Notation is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-10-09).
Flattens a nested JSON object into dot-notation key-value pairs, with configurable delimiter and array handling
Flatten nested JSON to dot-notation keys. E.g. {a:{b:[1,2]}} → {'a.b.0':1,'a.b.1':2}. Configurable delimiter and array handling. Algorithmic.
Returns a flat JSON object where each nested key path is represented as a dot-delimited string (e.g. 'user.address.city') mapped to its scalar value. Arrays are either indexed (e.g. 'scores.0', 'scores.1') or stringified depending on the array_handling option.
GEThttps://api.strale.io/x402/flatten-json?utm_source=zero.xyzChoose this endpoint when you need a simple, deterministic algorithmic transformation of a nested JSON object into flat dot-notation keys — especially useful for indexing into Elasticsearch, flattening config files, preparing data for CSV export, or normalizing API responses for storage. It supports configurable delimiters and array handling modes. Prefer this over writing custom flattening code when operating in an agentic pipeline that needs a reliable, stateless utility call.
{
"data": "{\"user\":{\"name\":\"Alice\",\"address\":{\"city\":\"London\"}},\"scores\":[10,20]}",
"delimiter": ".",
"array_handling": "index"
}| Field | Type | Description |
|---|---|---|
| inputrequired | object |
{
"_meta": {
"payment": {
"method": "x402",
"price_usd": 0.0216,
"settlement_id": "0xd044917f7cbf33fac8965c27107f4b379abc501fe822e9f6de9f56b11eff9fe6"
},
"capability": "flatten-json",
"latency_ms": 0,
"provenance": {
"source": "algorithmic",
"fetched_at": "2026-06-17T04:11:19.101Z"
}
},
"delimiter": ".",
"flattened": {
"": "{\"user\":{\"name\":\"Alice\",\"address\":{\"city\":\"London\"}},\"scores\":[10,20]}"
},
"key_count": 1,
"array_handling": "index",
"max_depth_found": 0
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"