Home Search

DriveWorks Pro 21
SppJsonUnEscape

Send Feedback

SppJsonUnEscape

Strips the escape characters of a JSON string representation to its String format.

Syntax

SppJsonUnEscape([JSON String])

Where:

JSON String is the escaped JSON string.

The function escapes the following characters:

  • \b is replaced with Backspace
  • \f is replaced with Form feed
  • \n is replaced with Newline
  • \r is replaced with Carriage return
  • \t is replaced with Tab
  • \" is replaced with Double quote - ""
  • * is replaced with *Backslash

Example

RuleResultMeaning
SppJsonUnEscape(DWVariableEscapedJSON)
"[
    {
        colors: ""red     and     green"",
    },
    {
        colors: ""blue    and     yellow"",
    }
]"
Will strip the JSON string representation of all escaping characters.

Example Data

The value held in the variable DWVariableEscapedJSON would look like the example below:

"[\n\t{\n\t\tcolors: \"red\tand\tgreen\",\n\t},\n\t{\n\t\tcolors: \"blue\tand\tyellow\",\n\t}\n]"

See also:

SppJSONEscape

SppJSONLoad

SppJSONToXml