Constructors

Synopses

Declared in <bdljsn_json.h>

Create an empty JsonObject.

Create a JsonObject by moving from the specified original.

Create an empty JsonObject using the specified basicAllocator.

explicit
JsonObject(bslma::Allocator* basicAllocator);

Create a JsonObject by moving from original using basicAllocator.

Create a JsonObject from the specified memberInitializers.

JsonObject(
    std::initializer_list<JsonObject_MemberInitializer> memberInitializers,
    bslma::Allocator* basicAllocator = 0);

Create a JsonObject having the same value as original.

JsonObject(
    JsonObject const& original,
    bslma::Allocator* basicAllocator = 0);

Create a JsonObject from the range [first, last)].

template<class t_INPUT_ITERATOR>
JsonObject(
    t_INPUT_ITERATOR first,
    t_INPUT_ITERATOR last,
    bslma::Allocator* basicAllocator = 0);

Parameters

Name

Description

original

source object

basicAllocator

memory allocator; null uses the default

memberInitializers

initializer‐list of members

first

beginning of the source range

last

end of the source range

Created with MrDocs