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

JSON container. More...

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)
 

Private Member Functions

procedure, private json_up (json)
 Return to parent object.
 
procedure, private json_add_integer (json, key, integer_value)
 
procedure, private json_add_integer_array (json, key, integer_array)
 
procedure, private json_add_double (json, key, double_value)
 
procedure, private json_add_double_array (json, key, double_array)
 
procedure, private json_add_string (json, key, string_value)
 
procedure, private json_add_string_array (json, key, string_array)
 
procedure, private json_add_boolean (json, key, boolean_value)
 
procedure, private json_add_boolean_array (json, key, boolean_array)
 
procedure, private json_add_null (json, key)
 
procedure, private add_value (json, json_value, key)
 
procedure, private add_child (json, json_value)
 
procedure, private add_next (json, json_value)
 
procedure, private go_tail (json)
 
procedure, private write_entry (json, lvl, key, text, has_next, unit, iostat, iomsg)
 
procedure, private json_write_formatted (json, unit, iotype, v_list, iostat, iomsg)
 

Private Attributes

type(t_json_value), pointer, private root => null()
 
type(t_json_value), pointer, private current => null()
 
logical, private go_child = .false.
 

Detailed Description

JSON container.

Constructor & Destructor Documentation

◆ json_finalize()

final mod_json_writer::t_json::json_finalize ( type(t_json), intent(inout) json)
final

Destructor.

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 )

Add an empty array.

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 )

Add an empty object.

Parameters
[in,out]jsonJSON container
[in]keyLabel of the object

◆ json_up()

procedure, private mod_json_writer::t_json::json_up ( class(t_json), intent(inout) json)
private

Return to parent object.

Parameters
[in,out]jsonJSON container

◆ up()

generic mod_json_writer::t_json::up ( class(t_json), intent(inout) json)

Return to parent object.

Parameters
[in,out]jsonJSON container

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