JSONItem.RemoveAt

From Xojo Documentation

Method

JSONItem.RemoveAt(Index As Integer)

New in 2019r2

Supported for all project types and targets.

Removes the child with the passed Index.

Examples

This example removes a value using its index:

Var kids As New JSONItem
// This object is manipulated like an array
kids.Add("John Jr")
kids.Add("Jamie")
kids.Add("Jack")
kids.Add("Josie")
kids.AddAt(0, "Jonah")
kids.RemoveAt(2)

person.Value("Kids") = kids