Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_file), | intent(inout) | :: | me | |||
character(kind=CK,len=*), | intent(in) | :: | path | |||
character(kind=CK,len=:), | intent(out), | allocatable | :: | val | ||
logical(kind=LK), | intent(out), | optional | :: | found |
Get a character string from a json file. The output val is an allocatable character string.
subroutine json_file_get_string(me, path, val, found)
implicit none
class(json_file),intent(inout) :: me
character(kind=CK,len=*),intent(in) :: path
character(kind=CK,len=:),allocatable,intent(out) :: val
logical(LK),intent(out),optional :: found
call json_get(me%p, path=path, value=val, found=found)
end subroutine json_file_get_string