version 0.6.0
Loading...
Searching...
No Matches
mod_json_writer::t_json Type Reference

JSON container.

Public Member Functions

generic write write
 Write JSON file.
 
 formatted (json, unit, iotype, v_list, iostat, iomsg)
 
generic up (json)
 Return to parent object.
 
generic add (json, key, integer_value)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key, double_value)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key, string_value)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key, boolean_value)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key, integer_array)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key, double_array)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key, string_array)
 Add item (integer, double, string, boolean, null) or array.
 
generic add (json, key, boolean_array)
 Add item (integer, double, string, boolean, null) or array.
 
procedure add_object (json, key)
 Add an empty object.
 
procedure add_array (json, key)
 Add an empty array.
 
procedure finalize (json)
 Unalloc the structure.
 
final json_finalize (json)
 Destructor.
 

Public Attributes

integer indent_length = 3
 Indentation length (default 3)
 

Constructor & Destructor Documentation

◆ json_finalize()

final mod_json_writer::t_json::json_finalize ( type(t_json), intent(inout) json)
final
Parameters
[in,out]jsonJSON container

Member Function/Subroutine Documentation

◆ add_array()

procedure mod_json_writer::t_json::add_array ( class(t_json), intent(inout) json,
character(len=*), intent(in) key )
Parameters
[in,out]jsonJSON container
[in]keyLabel of the array

◆ add_object()

procedure mod_json_writer::t_json::add_object ( class(t_json), intent(inout) json,
character(len=*), intent(in) key )
Parameters
[in,out]jsonJSON container
[in]keyLabel of the object

◆ up()

generic mod_json_writer::t_json::up ( class(t_json), intent(inout) json)
Parameters
[in,out]jsonJSON container

The documentation for this type was generated from the following file: