WriteStream( ) method (JsonArray)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Serializes the JsonArray and any JsonConstructs it references to a statically defined output stream. This is a recursive process resulting in a JSON representation of the entire set of JsonObjects and JsonArrays. On successful completion this method returns TRUE.
Return type: LOGICAL
Access: PUBLIC
Applies to: Progress.Json.ObjectModel.JsonArray class
Syntax
|
- stream
- A CHARACTER expression that specifies the name of a stream to which
the AVM writes the JSON string. If you specify the empty string (""), the AVM writes the
JSON String to the default output stream. For WebSpeed, write the JSON string to the
WebSpeed-defined output stream (WEBSTREAM).
For more information about using ABL unnamed output streams, see the DEFINE STREAM statement reference entry and the topics on alternate I/O sources in OpenEdge Programming Interfaces. .
- formatted
- A CHARACTER expression that specifies the name of a stream to which the AVM writes the JSON string. If you specify the empty string (""), the AVM writes the JSON string to the default unnamed output stream. For WebSpeed, write the JSON string to the WebSpeed-defined output stream (WEBSTREAM).
- encoding
- An optional string indicating the Unicode Transformation Format of
the JSON string to be written. Valid values for UTF are "
UTF-8", "UTF-16", "UTF-16BE", "UTF-16LE", "UTF-32", "UTF-32BE", and "UTF-32LE". If the value is the empty string (""), the Unknown value (?), or not given, the parameter defaults to "UTF-8".