wrap_json_valid_path Function

private function wrap_json_valid_path(json, p, path) result(found)

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

Arguments

TypeIntentOptionalAttributesName
class(json_core), intent(inout) :: json
type(json_value), intent(in), pointer:: p

a JSON linked list

character(kind=CDK,len=*), intent(in) :: path

path to the variable

Return Value logical(kind=LK)

true if it was found


Calls

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

Contents

Source Code


Source Code

    function wrap_json_valid_path(json, p, path) result(found)

    implicit none

    class(json_core),intent(inout)       :: json
    type(json_value),pointer,intent(in)  :: p      !! a JSON linked list
    character(kind=CDK,len=*),intent(in) :: path   !! path to the variable
    logical(LK)                          :: found  !! true if it was found

    found = json%valid_path(p, to_unicode(path))

    end function wrap_json_valid_path