[#BloombergLP-bdljsn-JsonObject-2constructor-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]::JsonObject
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

Create an empty `JsonObject`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject/2constructor-0b.adoc[JsonObject]();
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/2constructor-0b.adoc[_» more&period;&period;&period;_]#

Create a `JsonObject` by moving from the specified `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject/2constructor-0e.adoc[JsonObject](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;JsonObject&gt;] original) noexcept;
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create an empty `JsonObject` using the specified `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdljsn/JsonObject/2constructor-03e.adoc[JsonObject](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/2constructor-03e.adoc[_» more&period;&period;&period;_]#

Create a `JsonObject` by moving from `original` using `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject/2constructor-030.adoc[JsonObject](
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;JsonObject&gt;] original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/2constructor-030.adoc[_» more&period;&period;&period;_]#

Create a `JsonObject` from the specified `memberInitializers`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject/2constructor-09.adoc[JsonObject](
    std::initializer&lowbar;list&lt;JsonObject&lowbar;MemberInitializer&gt; memberInitializers,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/2constructor-09.adoc[_» more&period;&period;&period;_]#

Create a `JsonObject` having the same value as `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject/2constructor-0a.adoc[JsonObject](
    xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Create a `JsonObject` from the range `&lsqb;first, last)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;INPUT&lowbar;ITERATOR&gt;
xref:BloombergLP/bdljsn/JsonObject/2constructor-02.adoc[JsonObject](
    t&lowbar;INPUT&lowbar;ITERATOR first,
    t&lowbar;INPUT&lowbar;ITERATOR last,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/2constructor-02.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| source object
| *basicAllocator*
| memory allocator&semi; null uses the default
| *memberInitializers*
| initializer&hyphen;list of members
| *first*
| beginning of the source range
| *last*
| end of the source range
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
