JSONItem.Name

From Xojo Documentation

Method

JSONItem.Name(Index As Integer) As String

New in 2011r2

Supported for all project types and targets.

Returns the name of a named child by index. Array items will return an empty string. Index is zero-based.

Example

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.Name(1) // returns "Age"