SetJSONBoolean()
语法
SetJSONBoolean(JSONValue, Value)概要
Change the type of the JSON value to #PB_JSON_Boolean and store the given boolean value.
参数
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.
返回值
无.
示例
If CreateJSON(0) ArrayValue = SetJSONArray(JSONValue(0)) SetJSONBoolean(AddJSONElement(ArrayValue), #True) SetJSONBoolean(AddJSONElement(ArrayValue), #False) Debug ComposeJSON(0) EndIf
参阅
GetJSONBoolean(), SetJSONArray(), SetJSONDouble(), SetJSONFloat(), SetJSONInteger(), SetJSONNull(), SetJSONObject(), SetJSONString(), SetJSONQuad()
已支持操作系统
所有