[#nlohmann-basic_json-00-2constructor-0cf]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::basic&lowbar;json
:relfileprefix: ../../
:mrdocs:

create a container (array or object) from an initializer list

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
basic&lowbar;json(
    xref:nlohmann/basic_json-00/initializer_list_t.adoc[initializer&lowbar;list&lowbar;t] init,
    bool type&lowbar;deduction = true,
    xref:nlohmann/basic_json-00/value_t.adoc[value&lowbar;t] manual&lowbar;type = value&lowbar;t&colon;&colon;array);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *init*
| The object to construct from
|===


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