JSON script interface

The IJSONInstance interface derives from IInstance to add APIs specific to the JSON plugin. JSON can be conveniently modified from script alone, but this interface allows exchanging data between event sheets and code.

JSON APIs

getJsonDataCopy()
Return a copy of the JSON data held in the object.
setJsonDataCopy(o)
Set the JSON data held in the object.

setJsonString(str)
Parses a string as JSON data and stores the result in the JSON object.
toCompactString()
toBeautifiedString()
Return the contents of the JSON object converted to a string, either in compact form (which is smaller and more efficient to store and send), or "beautified" (which uses line breaks and indentation to make the result more readable).
Construct 3 Manual 2020-06-16

On this page