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

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 information about the class definition of the object or control.


Events

JSONGenerator event

Occurs

Constructor

Immediately before the Open event occurs in the window

Destructor

Immediately after the Close event occurs in the window


Functions

JSONGenerator function

Datatype returned

Description

AddItemArray

Long

Adds the child item of JSONArrayItem type.

AddItemBlob

Long

Adds the child item of JSONStringItem type.

AddItemBoolean

Long

Adds the child item of JSONBooleanItem type.

AddItemDate

Long

Adds the child item of JSONStringItem type.

AddItemDateTime

Long

Adds the child item of JSONStringItem or JSONNumberItem type.

AddItemNull

Long

Adds the child item of JSONNullItem type.

AddItemNumber

Long

Adds the child item of JSONNumberItem type.

AddItemObject

Long

Adds the child item of JSONObjectItem type.

AddItemString

Long

Adds the child item of JSONStringItem type.

AddItemTime

Long

Adds the child item of JSONStringItem type.

ClassName

String

Returns the name assigned to the object

CreateJSONArray

Long

Creates the array as root item to initialize instance.

CreateJSONObject

Long

Creates the object as root item to initialize instance.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service

GetJSONBlob

Blob

Gets the JSON blob data.

GetJSONString

String

Gets the JSON string data.

GetParent

PowerObject

Returns a reference to the name of the parent object

PostEvent

Boolean

Adds an event to the end of the message queue for the object

SaveToFile

Integer

Saves the JSON data to the local file.

TriggerEvent

Integer

Triggers a specific event in the object and executes the script for the event

TypeOf

Object

Returns the type of the object