Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

JSON.CreateBoolean

Creates a boolean node with given value.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 6.0 Yes Yes Yes Yes Yes

MBS( "JSON.CreateBoolean"; Value )

Parameters

Parameter Description Example value
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


JSON.CreateBool   -   JSON.CreateDoubleArray

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos