json_value_create_null Subroutine

private subroutine json_value_create_null(json, p, name)

Allocate a json_value pointer and make it a null variable. The pointer should not already be allocated.

Example

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

Type Bound

json_core

Arguments

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

Source Code

    subroutine json_value_create_null(json,p,name)

    implicit none

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

    call json_value_create(p)
    call json%to_null(p,name)

    end subroutine json_value_create_null