Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$ESC^XLFJSON(): Escape String to JSON

Reference Type: Supported, Category: JSON Conversion Functions, ICR#: 6682

Description

The $$ESC^XLFJSON extrinsic function returns an escaped string in a JSON format.

NOTE: This API was released with Kernel Patch XU*8.0*680.

Format

  $$ESC^XLFJSON(x)

Input Parameters

x:

(required) A string to be escaped to a JSON format.

Output

returns:

Returns a JSON escaped string.

Example

>W $$ESC^XLFJSON("\one\two\three\")
\\one\\two\\three\\