This procedure writes an array attribute of type NUMBER
.
Syntax
procedure write ( p_name in varchar2, p_values in apex_t_number, p_write_null in boolean default false );
Parameters
Table 20-60 WRITE Procedure Parameters
Parameter | Description |
---|---|
|
The attribute name. |
|
The |
|
If true, write an empty array. If false (the default), do not -- write an empty array. |
Example
This example writes an array containing 1, 2, 3.
declare l_values apex_t_number := apex_t_number( 1, 2, 3 ); begin apex_json.open_object; -- { apex_json.write('array', l_values ); -- "array": [ 1, 2, 3 ] apex_json.close_object; -- } end;
Parent topic: APEX_JSON