AppendArray method (NotesJSONObject - LotusScript)
Appends a NotesJSONArray to the NotesJSONObject.
Defined in
Parameters
name
String. Name of the array.
Return value
Returns NotesJSONArray that was appended to the NotesJSONObject.
Example
Append an array named "myarray" with three elements to a
NotesJSONObject.
Dim session As New NotesSession()
Dim jsnav As NotesJSONNavigator
Dim arr As NotesJSONArray
Dim object As NotesJSONObject
Set jsnav = session.createJSONNavigator("")
Set object = jsnav.appendObject("myobject")
Set arr = object.appendArray("myarray")
Call arr.appendElement(1)
Call arr.appendElement(2)
Call arr.appendElement(3)
Output: {"myobject":{"myarray":[1,2,3]}}