POST /v1/json-unflattenUnflatten dot-notation keys to nested JSON
Format Utils lf-format-utils
Rebuilds nested JSON from flat keys that use dots. Unflatten dot-notation keys to nested JSON
Request Body
Content-Type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
json | object | Yes | Flat dot-notation object |
separator | string | No | Key separator (default '.') |
Response Schema
nested (object): Nested JSON object
keys (integer): Number of top-level keys
cURL Example
curl -X POST 'https://lf-format-utils.laminarforge.dev/v1/json-unflatten' -H 'Authorization: Bearer lf_YourApiKey' -H 'Content-Type: application/json' -d '{}'Python Example
import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/json-unflatten'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
data = {}
response = requests.post(url, headers=headers, json=data)
print(response.json())