Dictionary.FromJSON
-------------------

Creates dictionary from JSON.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Dictionary](component_Dictionary.md) | [11.1](newinversion111.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Dictionary.FromJSON"; JSON ) 

**MBS**( **"Dictionary.FromJSON";** /\* Creates dictionary from JSON. \*/  
**$JSON**) /\* A JSON text or reference.e.g. {"key": "value"} \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JSON | A JSON text or reference. | {"key": "value"} |

### Result

Returns dictionary reference number or error.

### Description

Creates dictionary from JSON.  
Numbers and text are passed. Booleans become number. NULL will be empty text. Objects and arrays are passed as JSON as text.  
### Examples

Create from dictionary:

 MBS ( "Dictionary.FromJSON"; "{\\"Hello\\": \\"World\\"}" )  
Create dictionary from JSON and return it back:

 MBS ( "[Dictionary.ToJSON](DictionaryToJSON.md)"; MBS ( "Dictionary.FromJSON";  
"{  
\\"Hello\\": \\"World\\",   
\\"num\\": 123,   
\\"value\\": 123.456 ,   
\\"object\\": {\\"Hello\\": \\"World\\"},   
\\"empty\\": null,  
\\"array\\": \[1,2,3\]}"))  
### See also

- [Dictionary.ToJSON](DictionaryToJSON.md)

### Release notes

- **Version 11.1**
    - Added [Dictionary.AddDictionary](https://www.mbsplugins.eu/DictionaryAddDictionary.shtml) and [Dictionary.FromJSON](https://www.mbsplugins.eu/DictionaryFromJSON.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 11.1](https://www.mbsplugins.de/archive/2021-03-16/MBS_FileMaker_Plugin_111/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 11.1](https://www.mbsplugins.de/archive/2021-03-09/Neues_MBS_FileMaker_Plugin_111/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 11.1](https://www.mbsplugins.de/archive/2021-03-09/MBS_FileMaker_Plugin_111/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.1pr8](https://www.mbsplugins.de/archive/2021-03-04/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 1st March 2021 , last changed 1st March 2021

  
[Dictionary.Deserialize](DictionaryDeserialize.md) - [Dictionary.GetTag](DictionaryGetTag.md)

[HTML Version](DictionaryFromJSON.shtml)