wrap_json_get_array_by_path Subroutine

private recursive subroutine wrap_json_get_array_by_path(json, me, path, array_callback, found)

Alternate version of json_get_array_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
procedure(json_array_callback_func) :: array_callback
logical(kind=LK), intent(out), optional :: found

Source Code

    recursive subroutine wrap_json_get_array_by_path(json, me, path, array_callback, found)

    implicit none

    class(json_core),intent(inout)       :: json
    type(json_value),pointer,intent(in)  :: me
    character(kind=CDK,len=*),intent(in) :: path
    procedure(json_array_callback_func)  :: array_callback
    logical(LK),intent(out),optional     :: found

    call json%get(me, to_unicode(path), array_callback, found)

    end subroutine wrap_json_get_array_by_path