JSONItem.HasKey

From Xojo Documentation

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