21.30 STRINGIFY Function Signature 4

This function converts a boolean value to an escaped JSON value.

Syntax

APEX_JSON.STRINGIFY (
    p_value  IN BOOLEAN )
RETURN VARCHAR2;

Parameters

Table 21-37 STRINGIFY Function Parameters

Parameter Description

p_value

The boolean value to be converted.

Returns

Table 21-38 STRINGIFY Function Returns

Return Description

VARCHAR2

The converted and escaped JSON value.

Example

This example demonstrates printing JSON boolean values.

BEGIN
  sys.htp.p(apex_json.stringify(true));
  sys.htp.p(apex_json.stringify(false));
END;