json_value_create_object Subroutine

private subroutine json_value_create_object(json, p, name)

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

Example

     type(json_value),pointer :: p
     type(json_core) :: json
     call json%create_object(p,'objectname')

Arguments

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

Calls

proc~~json_value_create_object~~CallsGraph proc~json_value_create_object json_value_create_object proc~json_value_create json_value_create proc~json_value_create_object->proc~json_value_create

Contents


Source Code

    subroutine json_value_create_object(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_object(p,name)

    end subroutine json_value_create_object