json_get_logical_by_path Subroutine

private subroutine json_get_logical_by_path(json, me, path, value, found, default)

Get a logical value from a json_value, given the path.

Arguments

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

default value if not found


Calls

proc~~json_get_logical_by_path~~CallsGraph proc~json_get_logical_by_path json_get_logical_by_path proc~flag_not_found flag_not_found proc~json_get_logical_by_path->proc~flag_not_found

Contents


Source Code

    subroutine json_get_logical_by_path(json, me, path, value, found, default)

    implicit none

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

    logical(LK),parameter :: default_if_not_specified = .false.
    character(kind=CK,len=*),parameter :: routine = CK_'json_get_logical_by_path'

#include "json_get_scalar_by_path.inc"

    end subroutine json_get_logical_by_path