Skip to content

qie.unescapeJson

Signature: qie.unescapeJson(value)

Returns: String unescapedValue - the unescaped value

Unescape the JSON escaped value.

Parameters

Type Name Description Default
String value the value to be unescaped

Example

// message.setNode/getNode automatically handle JSON escaping,
// so unescapeJson is only needed for raw JSON-escaped values
// obtained from files, databases, or external systems.

// Example of a raw JSON-escaped string
var escapedJsonValue = "No!\\nThat's \\\"impossible!\\\"";

// Manually unescape the JSON value
var unescapedValue = qie.unescapeJson(escapedJsonValue);