util.JSON methods

Methods for the util.JSON class.

Table 1. Class methods
Name Description
util.JSON.format(
   s STRING )
  RETURNS STRING
Formats a JSON string with indentation.
util.JSON.parse(
   s STRING,
   variableRef { base-type
                 | record-type
                 | dynamic-array-type
                 | dictionary-type
                 }
   )
Parses a JSON string and fills program variables with the values.
util.JSON.proposeType(
   s STRING )
  RETURNS STRING
Describes the record structure that can hold a given JSON data string.
util.JSON.stringify(
   value { base-type
           | record-type
           | dynamic-array-type
           | dictionary-type
           }
   )
  RETURNS STRING
Transforms a record variable to a flat JSON formatted string, by including empty records and empty arrays.
util.JSON.stringifyOmitNulls(
   value { RECORD | DYNAMIC ARRAY } )
  RETURNS STRING
Transforms a record variable to a flat JSON formatted string, by excluding empty records and empty arrays.