Allocate a json_value pointer and make it a logical(LK) variable. The pointer should not already be allocated.
type(json_value),pointer :: p type(json_core) :: json call json%create_logical(p,'value',.true.)
Type | Intent | Optional | 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 |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
subroutine json_value_create_logical(json,p,val,name)
implicit none
class(json_core),intent(inout) :: json
type(json_value),pointer :: p
character(kind=CK,len=*),intent(in) :: name !! variable name
logical(LK),intent(in) :: val !! variable value
call json_value_create(p)
call to_logical(p,val,name)
end subroutine json_value_create_logical