JSON Unflatten API - Rebuild Nested Structure from Dot Keys
Inverse of /v1/json-extra/flatten. Splits each key by the delimiter, walks the path, and builds the nested structure. Segments that parse as non-negative integers become array indices; everything else becomes an object key.
Code examples
curl -X POST https://api.botoi.com/v1/json-extra/unflatten \
-H "Content-Type: application/json" \
-d '{"json":{"user.name":"Ada","user.tags.0":"founder","user.tags.1":"engineer"},"delimiter":"."}'When to use this API
Parse form data into a nested payload
HTML form names like "user.address.city" come in flat. Collect them into a flat object, then unflatten to the JSON shape your API expects. No framework-specific form library required.
Import CSV back into nested JSON
After flattening nested JSON into CSV for editing in Excel, read the rows back as flat objects and unflatten each one to restore the original structure.
Environment variables to nested config
Convention: MYAPP_DB_HOST, MYAPP_DB_PORT. Strip the prefix, lowercase, replace underscores with dots, and unflatten to get the config object your app expects.
Frequently asked questions
How does array detection work?
What if I have literal digit keys I want as strings?
Does this handle arbitrary delimiters?
What happens on conflicting paths?
Is there a size limit?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.