Progress.Json.ObjectModel.JsonArray class
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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.
Serializable:
Yes
Constructors
|
- initial-size
- 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 (?), aJsonErrorerror is raised. - initial-value
- 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 theJsonArray. The constructedJsonArrayhas as many elements as the length of the ABL array.Any Unknown (
?) values within the ABL array results in a JSON null value in theJsonArray. If initial-value is Unknown (?), or is indeterminate, aJsonErroris raised.
Super Class
Interfaces
This class does not implement an interface.
Public Properties
| END_OF_ARRAY property | Length property (JSON) | – |
Public Methods
Public Events
This class does not contain events.