BloombergLP::bdljsn::Json::Json

Create a Json object holding the JsonNull value.

Synopsis

Declared in <bdljsn_json.h>

explicit
Json(
    JsonNull const& null,
    bslma::Allocator* basicAllocator = 0);

Description

Create a Json object having the type JsonNull and the same value as the specified null. Optionally specify the basicAllocator used to supply memory. If basicAllocator is not specified, the currently installed default allocator is used to supply memory.

Parameters

NameDescription
nullnull value to store
basicAllocatormemory allocator; null uses the default