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 )An INTEGER variable that represents the size of the new JsonArray. Each element is initialized to the JSON null value. If this value is 0, the array is empty. If this value is less than 0 or UNKNOWN (?), a JsonError error is raised.An ABL array that contains values that are used to initialize elements in the new JsonArray. Each element of the ABL array is used to initialize one element in the JsonArray. The constructed JsonArray has as many elements as the length of the ABL array.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.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |