SetJSONInteger()

语法

SetJSONInteger(JSONValue, Value)
概要
Change the type of the JSON value to #PB_JSON_Number and store the given integer value.

参数

JSONValue The JSON value.
Value The value to store.

返回值

无.

示例

  If CreateJSON(0)
    ArrayValue = SetJSONArray(JSONValue(0))
    SetJSONInteger(AddJSONElement(ArrayValue), 1)
    SetJSONInteger(AddJSONElement(ArrayValue), 2)
    SetJSONInteger(AddJSONElement(ArrayValue), 3)
    
    Debug ComposeJSON(0)
  EndIf

参阅

GetJSONInteger(), SetJSONArray(), SetJSONBoolean(), SetJSONDouble(), SetJSONFloat(), SetJSONNull(), SetJSONObject(), SetJSONString(), SetJSONQuad()

已支持操作系统

所有

<- SetJSONFloat() - Json Index - SetJSONNull() ->