31.29 STRINGIFY Function Signature 1
This function converts a string to an escaped JSON value.
Syntax
APEX_JSON.STRINGIFY (
p_value IN VARCHAR2 )
RETURN VARCHAR2;Parameters
Table 31-37 STRINGIFY Function Parameters
| Parameter | Description |
|---|---|
|
|
The string to be converted. |
Returns
Table 31-38 STRINGIFY Function Returns
| Return | Description |
|---|---|
|
|
The converted and escaped JSON value. |
Example
This example is a query that returns a JSON varchar2 value.
select apex_json.stringify('line 1'||chr(10)||'line 2') from dual;Parent topic: APEX_JSON