RemoveJSONElement()

语法

RemoveJSONElement(JSONValue, Index)
概要
Remove the element at the specified index from a JSON value of type #PB_JSON_Array.

参数

JSONValue The JSON value. The value must be of type #PB_JSON_Array.
Index The index of the element to remove. The value must be between 0 and JSONArraySize() - 1.

返回值

无.

示例

  ParseJSON(0, "[1, 2, 3, 4, 5]")
  RemoveJSONElement(JSONValue(0), 2)
  Debug ComposeJSON(0)

参阅

SetJSONArray(), AddJSONElement(), ResizeJSONElements(), ClearJSONElements(), GetJSONElement(), JSONArraySize(), JSONType()

已支持操作系统

所有

<- ParseJSON() - Json Index - RemoveJSONMember() ->