JSONItem.HasKey

From Xojo Documentation

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

JSONItem.HasKey(Key as String) As Boolean

New in 2021r1

Supported for all project types and targets.

Returns True if the child key exists.

Example

The following example calls HasKey to check if the passed key exists.

If myUncle.HasKey("Name") Then
MessageBox("myUncle.Name has a name.")
End If