SetJSONBoolean()

Syntax

SetJSONBoolean(JSONValue, Value)
Description
Change the type of the JSON value to #PB_JSON_Boolean and store the given boolean value.

Parameters

JSONValue The JSON value.
Value The boolean value to store. A non-zero value is stored as #True, a value of 0 is stored as #False.

Return value

None.

Example

  If CreateJSON(0)
    ArrayValue = SetJSONArray(JSONValue(0))
    SetJSONBoolean(AddJSONElement(ArrayValue), #True)
    SetJSONBoolean(AddJSONElement(ArrayValue), #False)
    
    Debug ComposeJSON(0)
  EndIf

See Also

GetJSONBoolean(), SetJSONArray(), SetJSONDouble(), SetJSONFloat(), SetJSONInteger(), SetJSONNull(), SetJSONObject(), SetJSONString(), SetJSONQuad()

Supported OS

All

<- SetJSONArray() - Json Index - SetJSONDouble() ->