JSONItem.Child

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

JSONItem.Child(Name As String) As JSONItem

New in 2011r2

Supported for all project types and targets.

Returns a child with the passed name.


Method

JSONItem.Child(Name As String, Assigns obj As JSONItem)

New in 2011r2

Supported for all project types and targets.

Sets a named child to a JSONItem.

Examples

Var myChild As New JSONItem

myChild.Value("Name") = "Fred"
myChild.Value("Age") = 12
myChild.Value("Married") = False

myChild.ChildAt(2) = person