util.JSON.format

Formats JSON string with indentation.

Syntax

util.JSON.format(
   source STRING )
  RETURNING result STRING
  1. source is a string value that contains JSON formatted data.
  2. result is a string that is well formatted and indented.

Usage

The util.JSON.format() class method takes a JSON formatted string as parameter and indents the JSON string.

The main purpose of this method is to beautify a JSON data string that is on a single line, by adding line breaks and indentation.