GetJSONBoolean()
语法
Result = GetJSONBoolean(JSONValue)概要
Return the boolean value of a JSON value of type #PB_JSON_Boolean. A JSON value can be set to a boolean with SetJSONBoolean().
参数
JSONValue The JSON value. The value must be of type #PB_JSON_Boolean.
返回值
The boolean value #True or #False.
示例
ParseJSON(0, "[true, true, false]") Debug GetJSONBoolean(GetJSONElement(JSONValue(0), 0)) Debug GetJSONBoolean(GetJSONElement(JSONValue(0), 1)) Debug GetJSONBoolean(GetJSONElement(JSONValue(0), 2))
参阅
SetJSONBoolean(), GetJSONDouble(), GetJSONElement(), GetJSONFloat(), GetJSONInteger(), GetJSONMember(), GetJSONString(), GetJSONQuad(), JSONType()
已支持操作系统
所有