37.32 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

Parameter Description
p_value The boolean value to be converted.

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;