Module for the first unit test.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=*), | public, | parameter | :: | dir | = | '../files/inputs/' | working directory |
| character(len=*), | public, | parameter | :: | filename1 | = | 'test1.json' | file to read |
| logical, | public | :: | namelist_style | for printing JSON variable paths |
A traverse routine for printing out all
the variables in a JSON structure.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(json_core), | intent(inout) | :: | json | |||
| type(json_value), | intent(in), | pointer | :: | p | ||
| logical(kind=json_LK), | intent(out) | :: | finished | set true to stop traversing |
Read a sample JSON file and retrieve some data from it
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(out) | :: | error_cnt |