Get a json_value pointer to the JSON file root.
This is equivalent to calling json_file%get('$',p)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_file), | intent(inout) | :: | me | |||
type(json_value), | intent(out), | pointer | :: | p | pointer to the variable |
subroutine json_file_get_root(me,p)
implicit none
class(json_file),intent(inout) :: me
type(json_value),pointer,intent(out) :: p !! pointer to the variable
p => me%p
end subroutine json_file_get_root