This class denotes an array containing a dynamic number of heterogeneous elements addressable by a numeric index. Since the number of elements is dynamic, the array can grow or shrink in size. Elements within the array can be another JsonArray, a JsonObject, a JSON value of any data type or the JSON Null value. JSON data types are String, Number and Boolean. Indexing into JsonArrays is 1-based.
A JsonArray is heterogeneous because elements within the array may be of different data types. For example, an array may contain mostly numbers, but may contain some null values to indicate the absence of a value and may, contain strings to indicate special cases.
PUBLIC JsonArray( ) PUBLIC JsonArray( INPUT initial-size AS INTEGER ) PUBLIC JsonArray( INPUT initial-value AS CHARACTER EXTENT ) PUBLIC JsonArray( INPUT initial-value AS COM-HANDLE EXTENT ) PUBLIC JsonArray( INPUT initial-value AS DATE EXTENT ) PUBLIC JsonArray( INPUT initial-value AS DATETIME EXTENT ) PUBLIC JsonArray( INPUT initial-value AS DATETIME-TZ EXTENT ) PUBLIC JsonArray( INPUT initial-value AS DECIMAL EXTENT ) PUBLIC JsonArray( INPUT initial-value AS HANDLE EXTENT ) PUBLIC JsonArray( INPUT initial-value AS INT64 EXTENT ) PUBLIC JsonArray( INPUT initial-value AS INTEGER EXTENT ) PUBLIC JsonArray( INPUT initial-value AS LOGICAL EXTENT ) PUBLIC JsonArray( INPUT initial-value AS LONGCHAR EXTENT ) PUBLIC JsonArray( INPUT initial-value AS MEMPTR EXTENT ) PUBLIC JsonArray( INPUT initial-value AS RAW EXTENT ) PUBLIC JsonArray( INPUT initial-value AS RECID EXTENT ) PUBLIC JsonArray( INPUT initial-value AS ROWID EXTENT ) PUBLIC JsonArray( INPUT initial-value AS JsonObject EXTENT ) PUBLIC JsonArray( INPUT initial-value AS JsonArray EXTENT ) |
Any Unknown (?) values within the ABL array results in a JSON null value in the JsonArray. If initial-value is Unknown (?), or is indeterminate, a JsonError is raised.