util.JSON methods

Methods for the util.JSON class.

Table 1. Class methods
Name Description
util.JSON.format(
   source STRING )
  RETURNING result STRING
Formats JSON string with indentation.
util.JSON.parse(
   source STRING,
   destination { RECORD | DYNAMIC ARRAY } )
Parses a JSON string and fills program variables with the values.
util.JSON.proposeType(
   source STRING )
  RETURNING result STRING
Describes the record structure that can hold a given JSON data string.
util.JSON.stringify(
   source { RECORD | DYNAMIC ARRAY } )
  RETURNING result STRING
Transforms a record variable to a flat JSON formatted string, by including empty records and empty arrays.
util.JSON.stringifyOmitNulls(
   source { RECORD | DYNAMIC ARRAY } )
  RETURNING result STRING
Transforms a record variable to a flat JSON formatted string, by excluding empty records and empty arrays.