Docs/Format Utils/POST /v1/json-unflatten

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

FieldTypeRequiredDescription
jsonobjectYesFlat dot-notation object
separatorstringNoKey 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())