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.

Type Bound

json_core

Arguments

Type IntentOptional Attributes Name
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


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