Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_file), | intent(inout) | :: | me | |||
character(kind=CDK,len=*), | intent(in) | :: | filename | the filename to open |
||
integer(kind=IK), | intent(in), | optional | :: | unit | the unit number to use |
Load the JSON data from a file.
type(json_file) :: f call f%load_file('my_file.json')
subroutine json_file_load(me, filename, unit)
implicit none
class(json_file),intent(inout) :: me
character(kind=CDK,len=*),intent(in) :: filename !! the filename to open
integer(IK),intent(in),optional :: unit !! the unit number to use
call json_parse(file=filename, p=me%p, unit=unit)
end subroutine json_file_load