AppendElement method (NotesJSONNavigator – LotusScript)

Appends a NotesJSONElement to the NotesJSONNavigator.

Defined in

NotesJSONNavigator

Parameters

value

Variant. Value to append to the NotesJSONNavigator. Allowed types are String , Integer, Long, Double, Boolean.

name

String. Optional. Name of the element. Name is not used when the root type of the JSON Navigator is an array. See AppendArray in NotesJSONNavigator.

Return value

Returns NotesJSONElement that was appended to the NotesJSONNavigator.

Example

Dim jsnav As NotesJSONNavigator
Dim el As NotesJSONElement
Set jsnav = session.createJSONNavigator("")
Set el = jsnav.appendElement(3, "newvalue")

Result: { "newvalue", 3 }