11.11.7 Item  Property

Gets a child element with the specified name.

Returns *NULL if the specified name does not exist, or if this element is not an object.

Property Type

XPRIM_JsonElement

Arguments

Position

Type

Mandatory

Description

1

String (Unicode)

Yes

The name of the child element.

 

Examples

The following retrieves a child element "errorMessage" from the JSON element #ResponseJSON.

Define_Com Class(#XPRIM_JsonElement) Name(#ResponseJSON) Reference(*DYNAMIC)

. . .

#ERROR_TEXT := #ResponseJson.Item<'errorMessage'>.AsString