utility.renderJSON
This function converts the provided JSON data to a string. The false argument specifies whether the JSON data should be converted to an easily readable and neat format.
Syntax
utility.renderJSON(<JSON data>, false)
Arguments
Argument |
Type |
Description |
---|---|---|
JSON data |
|
JSON data to be converted to string. |
false |
|
Indicates whether the JSON data must be converted to an easily readable and neat format. |
Returns
Type |
Description |
---|---|
string |
JSON data in a string format. |
Examples
The function utility.renderJSON($RestInvoke.responseBody, false)
returns {"FirstName":"ABC","LastName":"XYZ"}
.