AppendObject method (NotesJSONNavigator - LotusScript)

Appends a NotesJSONObject to the NotesJSONNavigator.

Defined in

NotesJSONNavigator

Parameters

name

String. Name of the object.

Return value

Returns NotesJSONObject that was appended to the NotesJSONNavigator.

Example

Append object named "myobject" to the navigator.
Dim jsnav As NotesJSONNavigator
		Set jsnav = session.createJSONNavigator("")
		Dim obj As NotesJSONObject
		Set obj = jsnav.appendObject("myobject")
		' Note arguments are element value, element name
		Call obj.appendElement("string value", "prop1")
		Call logOutput("appendObjectExample", jsnav)

Result: {"myobject":{"prop1":"string value"}}