JSON Element - ItemAt Property

Access a specific child element

Member of JSON Element (PRIM_WEB.JsonElement)

Data Type - PRIM_WEB.JsonElement - Base JSON element


NameTypeData TypeDescription
Index*InputIntegerIndex of the element to be accessed


The ItemAt property returns a reference to the Element at the position as specified by the Index parameter


In this example, the first item is being accessed and returned as a string.
#Description := #JSON.ItemAt<1>.asstring

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020