-
-
Notifications
You must be signed in to change notification settings - Fork 252
JSON API draft
Johannes Lichtenberger edited this page Jan 11, 2019
·
8 revisions
In order to provide JSON-nodes within Sirix we need a node-transaction API similar to the XdmNodeReadTrx/XdmNodeWriteTrx-API for XML.
JSONNodeWriteTrx:
-
insertObject()
creates an empty object node and moves the node cursor to the object node -
insertObjectKey(String)
creates an object-key node and moves the node cursor to the object-key node
on the object-key-node the insertObject()
-method is valid as well as all of the following methods:
-
insertArray()
creates an empty array and moves the node cursor to the array node -
insertString(String)
creates a String node. -
insertBoolean(boolean)
creates a boolean node. -
insertNull()
creates a null node and moves the