Catalog/data-transform-unflatten

Data Transform

Unflatten dotted keys API

Rebuilds a nested object/array from a flat map of dot/bracket keys (the inverse of flatten), inferring arrays from numeric indices. Answers 'How do I expand dotted keys back into nested JSON?', 'How do I unflatten a.b[0] style keys?'.

Price$0.01per request
MethodPOST
Route/v1/data-transform/unflatten
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformunflattenjsondot-notationnestedwranglekeys
API URLhttps://x402.hexl.dev/v1/data-transform/unflatten
Integration docs
Example request
{
  "object": {
    "a.b": 1,
    "a.c[0]": 2,
    "a.c[1]": 3
  }
}
Example response
{
  "result": {
    "a": {
      "b": 1,
      "c": [
        2,
        3
      ]
    }
  }
}
Input schema
{
  "type": "object",
  "required": [
    "object"
  ],
  "properties": {
    "object": {
      "type": "object",
      "examples": [
        {
          "a.b": 1,
          "a.c[0]": 2,
          "a.c[1]": 3
        }
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}