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.
PUBLIC JsonObject( )
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 "{ }".
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |