json_get_real32_by_path Subroutine

private subroutine json_get_real32_by_path(json, me, path, value, found)

Alternate version of json_get_real_by_path where value=real32.

Arguments

Type IntentOptional AttributesName
class(json_core), intent(inout) :: json
type(json_value), pointer:: me
character(kind=CK,len=*), intent(in) :: path
real(kind=real32), intent(out) :: value
logical(kind=LK), intent(out), optional :: found

Contents


Source Code

    subroutine json_get_real32_by_path(json, me, path, value, found)

    implicit none

    class(json_core),intent(inout)      :: json
    type(json_value),pointer            :: me
    character(kind=CK,len=*),intent(in) :: path
    real(real32),intent(out)            :: value
    logical(LK),intent(out),optional    :: found

    real(RK) :: tmp

    call json%get(me, path, tmp, found)
    value = real(tmp,RK)

    end subroutine json_get_real32_by_path