GetNextElement method (NotesJSONObject - LotusScript)
Returns the next element in a JSON object.
Defined in
Syntax
Set el = obj.GetNextlement()
Parameters
None
Return value
The next NotesJSONElement in the object.
Example
The following example retrieves the object named "object2" and displays a message box with the
text "Next object =
inner2:innerval2".
Set jsnav = s.CreateJSONNavigator(|{"objects":{"object1": {"inner1":"innerval1"},"object2": {"inner2":"innverval2"}, "object3": {"inner3":"innverval3"}}}|)
Set el = jsnav.Getfirstelement()
Set obj = el.Value
Set el = obj.Getfirstelement()
Set el = obj.GetNextelement()
Set el = el.value.GetelementByName("inner2")
MsgBox "Next object = " & CStr(el.Name) & ":" & CStr(el.Value)