GetJSONBoolean()

Syntax

Result = GetJSONBoolean(JSONValue)
Description
Return the boolean value of a JSON value of type #PB_JSON_Boolean. A JSON value can be set to a boolean with SetJSONBoolean().

Parameters

JSONValue The JSON value. The value must be of type #PB_JSON_Boolean.

Return value

The boolean value #True or #False.

Example

  ParseJSON(0, "[true, true, false]")
  
  Debug GetJSONBoolean(GetJSONElement(JSONValue(0), 0))
  Debug GetJSONBoolean(GetJSONElement(JSONValue(0), 1))
  Debug GetJSONBoolean(GetJSONElement(JSONValue(0), 2))

See Also

SetJSONBoolean(), GetJSONDouble(), GetJSONElement(), GetJSONFloat(), GetJSONInteger(), GetJSONMember(), GetJSONString(), GetJSONQuad(), JSONType()

Supported OS

All

<- FreeJSON() - Json Index - GetJSONDouble() ->