Get a json_value pointer to an object from a JSON file.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_file), | intent(inout) | :: | me | |||
character(kind=CK,len=*), | intent(in) | :: | path | the path to the variable |
||
type(json_value), | intent(out), | pointer | :: | p | pointer to the variable |
|
logical(kind=LK), | intent(out), | optional | :: | found | if it was really found |
subroutine json_file_get_object(me, path, p, found)
implicit none
class(json_file),intent(inout) :: me
character(kind=CK,len=*),intent(in) :: path !! the path to the variable
type(json_value),pointer,intent(out) :: p !! pointer to the variable
logical(LK),intent(out),optional :: found !! if it was really found
call me%core%get(me%p, path=path, p=p, found=found)
end subroutine json_file_get_object