wrap_json_get_integer_by_path Subroutine

private subroutine wrap_json_get_integer_by_path(json, me, path, value, found, default)

Alternate version of json_get_integer_by_path, where “path” is kind=CDK.

Arguments

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

default value if not found


Calls

proc~~wrap_json_get_integer_by_path~~CallsGraph proc~wrap_json_get_integer_by_path wrap_json_get_integer_by_path interface~to_unicode to_unicode proc~wrap_json_get_integer_by_path->interface~to_unicode proc~to_uni_vec to_uni_vec interface~to_unicode->proc~to_uni_vec proc~to_uni to_uni interface~to_unicode->proc~to_uni

Contents


Source Code

    subroutine wrap_json_get_integer_by_path(json, me, path, value, found, default)

    implicit none

    class(json_core),intent(inout)       :: json
    type(json_value),pointer,intent(in)  :: me
    character(kind=CDK,len=*),intent(in) :: path
    integer(IK),intent(out)              :: value
    logical(LK),intent(out),optional     :: found
    integer(IK),intent(in),optional      :: default !! default value if not found

    call json%get(me, to_unicode(path), value, found, default)

    end subroutine wrap_json_get_integer_by_path