This class denotes a dynamic number of properties each addressable by a Unicode string called a name. The properties can be another JsonObject, a JsonArray, a value of any JSON data type or the JSON null value. JSON data types are String, Number and Boolean.

Serializable:

Yes

Constructors

PUBLIC JsonObject( )

Super Class

Progress.Json.ObjectModel.JsonConstruct class

Interfaces

This class does not implement an interface.

Public Properties

This class does not define properties.

Public Methods

Add( ) method (JsonObject) AddNull( ) method (JsonObject)
AddNumber( ) method (JsonObject) Clone( ) method (JsonObject)
GetCharacter( ) method (JsonObject) GetCOMHandle( ) method (JsonObject)
GetDate( ) method (JsonObject) GetDatetime( ) method (JsonObject)
GetDatetimeTZ( ) method (JsonObject) GetDecimal( ) method (JsonObject)
GetHandle( ) method (JsonObject) GetInt64( ) method (JsonObject)
GetInteger( ) method (JsonObject) GetJsonArray( ) method (JsonObject)
GetJsonObject( ) method (JsonObject) GetJsonText( ) method (JsonObject)
GetLogical( ) method (JsonObject) GetLongchar( ) method (JsonObject)
GetMemptr( ) method (JsonObject) GetNames( ) method (JsonObject)
GetRaw( ) method (JsonObject) GetRecid( ) method (JsonObject)
GetRowid( ) method (JsonObject) GetType( ) method (JsonObject)
Has( ) method (JsonObject) IsNull( ) method (JsonObject)
Read( ) method (JsonObject) Remove( ) method (JsonObject)
Set( ) method (JsonObject) SetNull( ) method (JsonObject)
SetNumber( ) method (JsonObject) Write( ) method (JsonObject)
WriteFile( ) method (JsonObject) WriteStream( ) method (JsonObject)

Public Events

This class does not define events.

Example

The following example shows the constructor for JsonObject:
DEFINE VARIABLE myObj AS JsonObject NO-UNDO.
DEFINE VARIABLE myLongchar AS LONGCHAR NO-UNDO.

myObj = NEW JsonObject( ).
myObj:Write(myLongchar, TRUE).

In the above example, myObj is an empty object. The variable myLongchar is set to the value of "{ }".

See also

For details on working with JSON objects, refer to the Use JSON Objects and Arrays section in Use JSON with ABL Applications.