Extension packages / The util package |
The util.JSON class provides a basic interface to convert program variable values to/from JSON data.
IMPORT util
This class does not have to be instantiated; it provides class methods for the current program.
The purpose of the util.JSON class is to convert a JSON string from/to a BDL variable, to interface with other software based on the JSON format.
The BDL variable can be a simple variable (defined with a primitive type), a structured variable (RECORD), or dynamic array.
It is not possible to modify JSON elements with this class. In order to manipulate JSON objects, use the util.JSONObject and util.JSONArray classes.