wrap_json_get_integer_vec_by_path Subroutine

private subroutine wrap_json_get_integer_vec_by_path(json, me, path, vec, found, default)

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

Type Bound

json_core

Arguments

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

default value if not found


Source Code

    subroutine wrap_json_get_integer_vec_by_path(json, me, path, vec, found, default)

    implicit none

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

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

    end subroutine wrap_json_get_integer_vec_by_path