AppendElement method (NotesJSONObject - LotusScript)

Appends a NotesJSONElement to a NotesJSONObject

Defined in

NotesJSONObject (LotusScript)



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


String. Name of the element.

Return value

Returns NotesJSONElement that was appended to the NotesJSONObject.


Append a NotesJSONElement named "numberproperty" to an object.
Dim session As New NotesSession()
Dim jsnav As NotesJSONNavigator
Dim el As NotesJSONElement
Dim object As NotesJSONObject
Set jsnav = session.createJSONNavigator("")
Set object = jsnav.appendObject("myobject")
Set el = object.appendElement(3, "numberproperty")

Result: {"myobject":{"numberproperty":3}}