From Xojo Documentation


JSONItem.NameAt(Index As Integer) As String

New in 2019r2

Supported for all project types and targets.

Returns the name of a named child by index. Array items will return an empty string.


Var person As New JSONItem

// This object is manipulated like a dictionary
person.Value("Name") = "John Doe"
person.Value("Age") = 32
person.Value("Married") = True
person.Value("Spouse") = "Jane Doe"

Var s2 As String
s2 = person.NameAt(1) // returns "Age"