json_value_create_logical Subroutine

private subroutine json_value_create_logical(json, p, val, name)

Allocate a json_value pointer and make it a logical(LK) variable. The pointer should not already be allocated.

Example

     type(json_value),pointer :: p
     type(json_core) :: json
     call json%create_logical(p,'value',.true.)

Arguments

TypeIntentOptionalAttributesName
class(json_core), intent(inout) :: json
type(json_value), pointer:: p
logical(kind=LK), intent(in) :: val

variable value

character(kind=CK,len=*), intent(in) :: name

variable name


Calls

proc~~json_value_create_logical~~CallsGraph proc~json_value_create_logical json_value_create_logical proc~json_value_create json_value_create proc~json_value_create_logical->proc~json_value_create

Contents


Source Code

    subroutine json_value_create_logical(json,p,val,name)

    implicit none

    class(json_core),intent(inout)      :: json
    type(json_value),pointer            :: p
    logical(LK),intent(in)              :: val   !! variable value
    character(kind=CK,len=*),intent(in) :: name  !! variable name

    call json_value_create(p)
    call json%to_logical(p,val,name)

    end subroutine json_value_create_logical