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


Creates a boolean node with given value.

Component Version macOS Windows Linux Server iOS SDK
JSON 6.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JSON.CreateBoolean"; Value )   More


Parameter Description Example
Value The boolean value. Pass 1 for true and 0 for false. 1


Returns JSON or error.


Creates a boolean node with given value.
As we pass JSON in JSON around, you can simply write "false" directly instead of calling one of this functions.


Create a boolean with an expression:

Set Variable [$json; Value:MBS( "JSON.CreateBoolean"; Length($text) > 0 )]

Example result: true

See also

Blog Entries

This function is free to use.

Created 5th January 2016, last changed 11st December 2016

JSON.CreateBool - JSON.CreateDoubleArray