[#BloombergLP-bdljsn-Json-2constructor-09f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::Json
:relfileprefix: ../../../
:mrdocs:

Create a `Json` object from the specified `initializer`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;JSON&lowbar;INITIALIZER&gt;
Json(
    t&lowbar;JSON&lowbar;INITIALIZER const& initializer,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0)
requires bsl&colon;&colon;is&lowbar;same&lt;t&lowbar;JSON&lowbar;INITIALIZER,
                        Json&lowbar;Initializer&gt;&colon;&colon;value;
----

== Description

Create a `Json` object having the same structure as the specified `initializer`&period; Optionally specify the `basicAllocator` used to supply memory&period; If `basicAllocator` is not specified, the currently installed default allocator is used to supply memory&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initializer*
| list&hyphen;initialization value
| *basicAllocator*
| memory allocator&semi; null uses the default
|===


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