JSONGenerator object
The JSONGenerator object provides the ability to construct the JSON
objects with the root item being either an object or an array. It supports
adding values, objects, or arrays to the constructed JSON object.
Note
It is not recommended to use this object to process large data (20
MB or 100,000 data rows can be considered as large data based on our
tests), because this object will call a third-party library which is
memory intensive.
Note
This object cannot be referenced in .NET Web Service or .NET
Assembly components, otherwise the component will fail to be
deployed.
Properties
|
JSONGenerator property |
Datatype |
Description |
|---|---|---|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
Events
|
JSONGenerator event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
Functions
|
JSONGenerator function |
Datatype returned |
Description |
|---|---|---|
|
Long |
Adds a child item of JSONArrayItem |
|
|
Long |
Adds a child item of JSONStringItem |
|
|
Long |
Adds a child item of JSONBooleanItem |
|
|
Long |
Adds a child item of JSONStringItem |
|
|
Long |
Adds a child item of JSONStringItem or |
|
|
Long |
Adds a child item of JSONNullItem |
|
|
Long |
Adds a child item of JSONNumberItem |
|
|
Long |
Adds a child item of JSONObjectItem |
|
|
Long |
Adds a child item of JSONStringItem |
|
|
Long |
Adds a child item of JSONStringItem |
|
|
String |
Returns the name assigned to the |
|
|
Long |
Creates an array as root item to initialize |
|
|
Long |
Creates an object as root item to initialize |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
Blob |
Gets the JSON blob data. |
|
|
String |
Gets the JSON string data. |
|
|
Long |
Gets the handle of the item. |
|
|
String |
Gets the path of the item. |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Long |
Imports a JsonObjectItem item from a JSON |
|
|
Long |
Imports a JsonObjectItem item from a JSON |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Saves the JSON data to the local |
|
|
Integer |
Triggers a specific event in the object and |
|
|
Object |
Returns the type of the object. |