JSONItem.Names

From Xojo Documentation

Method

JSONItem.Names() As String()

New in 2011r2

Supported for all project types and targets.

Returns the names of the children. Array items will not be included.

Example

This example populates a String array with the names of the person JSONItem.

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 people() As String
people() = person.Names() // the array will now contain the names as used above