Module for the 14th unit test.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=*), | public, | parameter | :: | dir | = | '../files/inputs/' | working directory |
| character(len=*), | public, | parameter | :: | filename1 | = | 'test1.json' | the file to read |
| integer, | public | :: | icount | = | 0 | a count of the number of "name" variables found |
|
| character(len=:), | public, | allocatable | :: | new_name | name to change to |
change all "name" variable values to "Fred"
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(json_core), | intent(inout) | :: | json | |||
| type(json_value), | intent(in), | pointer | :: | p | ||
| logical, | intent(out) | :: | finished |
Tests the traversal of a JSON structure
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(out) | :: | error_cnt | report number of errors to caller |