JSONPackage object
The JSONPackage object provides the ability to merge data in a JSON
object or extract data from a JSON object. Merging and extracting can
occur at both the client side and the server side. The resulted JSON can
be posted from the client to the server via HTTPClient, or retrieved from
the server to the client via RESTClient.
For the JSON string that can be loaded by the JSONPackage object,
see the section called “Supported JSON formats” in Application Techniques.
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.
Note
The data to be merged can be from DataWindow, DataStore,
DataWindowChild, or from an existing JSON.
Composite, Crosstab, OLE 2.0, and RichText DataWindows are
unsupported.
Properties
|
JSONPackage property |
Datatype |
Description |
|---|---|---|
|
Boolean |
A boolean value that specifies whether to ignore |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Boolean |
Specifies whether the getting value function |
Events
|
JSONPackage event |
Occurs |
|---|---|
|
When the object is created. |
|
|
When the object is destroyed. |
Functions
|
JSONPackage function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Deletes all of the keys. |
|
|
Boolean |
Checks if the key name exists. |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
Blob |
Gets the JSON blob data. |
|
|
String |
Gets the JSON string data. |
|
|
String |
Gets the key name. |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
String |
Gets the value of the key. |
|
|
Blob |
Gets the blob value of the key. |
|
|
Boolean |
Gets the boolean value of the key. |
|
|
Date |
Gets the date value of the key. |
|
|
DateTime |
Gets the datetime value of the key. |
|
|
Number |
Gets the number value of the key. |
|
|
String |
Gets the string value of the key. |
|
|
Time |
Gets the time value of the key. |
|
|
Long |
Gets the value of the key and inserts it into a |
|
|
Long |
Gets the total number of keys. |
|
|
String |
Loads a JSON file. |
|
|
String |
Loads a JSON string. |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Removes a key. |
|
|
Integer |
Saves the JSON data to the local |
|
|
Integer |
Sets the value of the key. |
|
|
Integer |
Sets the blob value for a key. |
|
|
Integer |
Sets the boolean value for a key. |
|
|
Integer |
Sets the value of the key using the data from a |
|
|
Integer |
Sets the date value for a key. |
|
|
Integer |
Sets the datetime value for a key. |
|
|
Integer |
Sets the number value for a key. |
|
|
Integer |
Sets the string value for a key. |
|
|
Integer |
Sets the time value for a key. |
|
|
Integer |
Triggers a specific event in the object and |
|
|
Object |
Returns the type of the object. |