Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Creates dictionary from JSON.

Component Version macOS Windows Linux Server iOS SDK
Dictionary 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Dictionary.FromJSON"; json )   More


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


Returns dictionary reference number or error.


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.


Create from dictionary:

MBS( "Dictionary.FromJSON"; "{\"Hello\": \"World\"}" )

Create dictionary from JSON and return it back:

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

See also

Release notes

Blog Entries

This function checks for a license.

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

Dictionary.Deserialize - Dictionary.HasKey