json_value_create_integer Subroutine

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

Allocate a json_value pointer and make it an integer(IK) variable. The pointer should not already be allocated.

Example

     type(json_value),pointer :: p
     type(json_core) :: json
     call json%create_integer(p,'value',1)

Type Bound

json_core

Arguments

Type IntentOptional Attributes Name
class(json_core), intent(inout) :: json
type(json_value), pointer :: p
integer(kind=IK), intent(in) :: val
character(kind=CK, len=*), intent(in) :: name

Calls

proc~~json_value_create_integer~~CallsGraph proc~json_value_create_integer json_value_module::json_core%json_value_create_integer proc~json_value_create json_value_module::json_value_create proc~json_value_create_integer->proc~json_value_create proc~to_integer json_value_module::json_core%to_integer proc~json_value_create_integer->proc~to_integer proc~destroy_json_data json_value_module::destroy_json_data proc~to_integer->proc~destroy_json_data

Called by

proc~~json_value_create_integer~~CalledByGraph proc~json_value_create_integer json_value_module::json_core%json_value_create_integer none~create_integer json_value_module::json_core%create_integer none~create_integer->proc~json_value_create_integer proc~wrap_json_value_create_integer json_value_module::json_core%wrap_json_value_create_integer none~create_integer->proc~wrap_json_value_create_integer proc~json_add_integer_by_path json_value_module::json_core%json_add_integer_by_path proc~json_add_integer_by_path->none~create_integer proc~json_value_add_integer json_value_module::json_core%json_value_add_integer proc~json_value_add_integer->none~create_integer proc~wrap_json_value_create_integer->none~create_integer proc~wrap_json_add_integer_by_path json_value_module::json_core%wrap_json_add_integer_by_path proc~wrap_json_add_integer_by_path->proc~json_add_integer_by_path

Source Code

    subroutine json_value_create_integer(json,p,val,name)

    implicit none

    class(json_core),intent(inout)      :: json
    type(json_value),pointer            :: p
    integer(IK),intent(in)              :: val
    character(kind=CK,len=*),intent(in) :: name

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

    end subroutine json_value_create_integer