JSONItem.Count

From Xojo Documentation

Method

JSONItem.Count() As Integer

New in 2011r2

Supported for all project types and targets.

Returns the number of children.

Example

Var person As New JSONItem
Var i As Integer
person.DecimalFormat = "###,###.##"

//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"

i = person.Count