Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  


Creates dictionary from JSON.

Component Version macOS Windows Linux Server FileMaker 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

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

Dictionary.Deserialize   -   Dictionary.HasKey

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins

Start Chat