GetFirstElement method (NotesJSONArray - LotusScript)
Returns the first JSON element in an array.
Defined in
Syntax
Set el = jsarray.GetFirstElement()
Parameters
None
Return value
Returns the first NotesJSONElement in an array.
Example
The following code displays a message box with the value
1.
Set jsnav = s.CreateJSONNavigator(|{"numbers:" : [1,2,3,4,5]}|)
Set el = jsnav.GetFirstElement()
Set arr = el.value
Set el = arr.GetFirstElement()
MsgBox "First element: " & CStr(el.Value)