convertToJSON()
The serviceLib.convertToJSON() system function converts a record or dictionary into a JSON string. For details on the conversion, see “Correspondence between a JSON string and an EGL variable.”
Syntax
serviceLib.convertToJSON(variable VariableType out)
returns (json STRING)
- variable
- The name of a non-structured record or dictionary. Dictionary not supported for zOS. Dictionary not supported for zOS and IBM i.
- json
- A JSON string