GetFirstElement method (NotesJSONNavigator – LotusScript)

Retrieves the first element in a JSON string.

Defined in

NotesJSONNavigator

Syntax

Set el = jsnav.GetFirstElement ()

Parameters

None

Return value

Returns NotesJSONElement that corresponds to the first element in the JSON string.

Example

The following code returns an element with the name "element" and a value of "A string".
Dim jsnav As NotesJSONNavigator 

Set jsnav = s.CreateJSONNavigator( 
|{ "element1" : "A string", "element2" : "Another string" }|) 

Set el = jsnav.GetFirstElement()