wrap_json_get_string_vec_by_path Subroutine

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

Alternate version of json_get_string_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), intent(in), pointer :: me
character(kind=CDK, len=*), intent(in) :: path
character(kind=CK, len=*), intent(out), dimension(:), allocatable :: vec
logical(kind=LK), intent(out), optional :: found
character(kind=CK, len=*), intent(in), optional, dimension(:) :: default

Source Code

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

    implicit none

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

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

    end subroutine wrap_json_get_string_vec_by_path