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.
JSONGenerator property |
Datatype |
Description |
---|---|---|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
JSONGenerator event |
Occurs |
---|---|
Immediately before the Open event occurs in the window |
|
Immediately after the Close event occurs in the window |
JSONGenerator function |
Datatype returned |
Description |
---|---|---|
Long |
Adds a child item of JSONArrayItem type. |
|
Long |
Adds a child item of JSONStringItem type. |
|
Long |
Adds a child item of JSONBooleanItem type. |
|
Long |
Adds a child item of JSONStringItem type. |
|
Long |
Adds a child item of JSONStringItem or JSONNumberItem type. |
|
Long |
Adds a child item of JSONNullItem type. |
|
Long |
Adds a child item of JSONNumberItem type. |
|
Long |
Adds a child item of JSONObjectItem type. |
|
Long |
Adds a child item of JSONStringItem type. |
|
Long |
Adds a child item of JSONStringItem type. |
|
String |
Returns the name assigned to the object. |
|
Long |
Creates an array as root item to initialize instance. |
|
Long |
Creates an object as root item to initialize instance. |
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
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 object. |
|
Long |
Imports a JsonObjectItem item from a JSON string. |
|
Long |
Imports a JsonObjectItem item from a JSON file. |
|
Boolean |
Adds an event to the end of the message queue for the object. |
|
Integer |
Saves the JSON data to the local file. |
|
Integer |
Triggers a specific event in the object and executes the script for the event. |
|
Object |
Returns the type of the object. |