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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

JSON.CreateBoolean

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

Parameters

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

Result

Returns JSON or error.

Description

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.

Examples

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

💬 Ask a question or report a problem