JSON container. More...
Inheritance diagram for mod_json_writer::t_json: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. |
JSON container.
|
final |
Destructor.
| [in,out] | json | JSON container |
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| logical, dimension(:), intent(in) | boolean_array ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| logical, intent(in) | boolean_value ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| double precision, dimension(:), intent(in) | double_array ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| double precision, intent(in) | double_value ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| integer, dimension(:), intent(in) | integer_array ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| integer, intent(in) | integer_value ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| character(len=*), dimension(:), intent(in) | string_array ) |
Add item (integer, double, string, boolean, null) or array.
| generic mod_json_writer::t_json::add | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key, | ||
| character(len=*), intent(in) | string_value ) |
Add item (integer, double, string, boolean, null) or array.
| procedure mod_json_writer::t_json::add_array | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key ) |
Add an empty array.
| [in,out] | json | JSON container |
| [in] | key | Label of the array |
|
private |
|
private |
| procedure mod_json_writer::t_json::add_object | ( | class(t_json), intent(inout) | json, |
| character(len=*), intent(in) | key ) |
Add an empty object.
| [in,out] | json | JSON container |
| [in] | key | Label of the object |
|
private |
| procedure mod_json_writer::t_json::finalize | ( | class(t_json), intent(inout) | json | ) |
Unalloc the structure.
| mod_json_writer::t_json::formatted | ( | class(t_json), intent(in) | json, |
| integer, intent(in) | unit, | ||
| character(len=*), intent(in) | iotype, | ||
| integer, dimension(:), intent(in) | v_list, | ||
| integer, intent(out) | iostat, | ||
| character(len=*), intent(inout) | iomsg ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Return to parent object.
| [in,out] | json | JSON container |
|
private |
| generic mod_json_writer::t_json::up | ( | class(t_json), intent(inout) | json | ) |
Return to parent object.
| [in,out] | json | JSON container |
| generic mod_json_writer::t_json::write |
Write JSON file.
|
private |
|
private |
|
private |
| integer mod_json_writer::t_json::indent_length = 3 |
Indentation length (default 3)
|
private |