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.)

Type Bound

json_core

Arguments

Type IntentOptional Attributes Name
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_core%json_value_create_logical proc~json_value_create json_value_create proc~json_value_create_logical->proc~json_value_create proc~to_logical json_core%to_logical proc~json_value_create_logical->proc~to_logical proc~destroy_json_data destroy_json_data proc~to_logical->proc~destroy_json_data

Called by

proc~~json_value_create_logical~~CalledByGraph proc~json_value_create_logical json_core%json_value_create_logical none~create_logical json_core%create_logical none~create_logical->proc~json_value_create_logical proc~wrap_json_value_create_logical json_core%wrap_json_value_create_logical none~create_logical->proc~wrap_json_value_create_logical proc~json_add_logical_by_path json_core%json_add_logical_by_path proc~json_add_logical_by_path->none~create_logical proc~json_value_add_logical json_core%json_value_add_logical proc~json_value_add_logical->none~create_logical proc~wrap_json_value_create_logical->none~create_logical proc~wrap_json_add_logical_by_path json_core%wrap_json_add_logical_by_path proc~wrap_json_add_logical_by_path->proc~json_add_logical_by_path

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