JSON.Unflatten
--------------

Unflattens that object back to the original json.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [JSON](component_JSON.md) | [13.5](newinversion135.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "JSON.Unflatten"; JSON ) 

**MBS**( **"JSON.Unflatten";** /\* Unflattens that object back to the original json. \*/  
**$JSON**) /\* A JSON text or reference. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JSON | A JSON text or reference. |  |

### Result

Returns JSON or error.

### Description

Unflattens that object back to the original json.  
The keys in the flattened object are normalized json paths. The values are primitive (string, number, boolean, or null), empty object ({}) or empty array (\[\]).  
### Examples

Try unflatten:

 MBS ( "JSON.Unflatten"; "{ \\"$\['Hello'\]\\": \\"World\\" }")  
<small>  
Example result:   
{ "Hello" : "World" } </small>### See also

- [JSON.Flatten](JSONFlatten.md)

### Blog Entries

- [New in MBS FileMaker Plugin 13.5](https://www.mbsplugins.de/archive/2023-11-28/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th September 2023 , last changed 29th September 2025

  
[JSON.ToXML](JSONToXML.md) - [JSON.UpdateRecord](JSONUpdateRecord.md)

[HTML Version](JSONUnflatten.shtml)