RemoveJSONElement()

Syntax

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

Parameters

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.

Return value

None.

Example

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

See Also

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

Supported OS

All

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