[#nlohmann-basic_json-00-2constructor-0cf] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::basic_json :relfileprefix: ../../ :mrdocs: create a container (array or object) from an initializer list == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- basic_json( xref:nlohmann/basic_json-00/initializer_list_t.adoc[initializer_list_t] init, bool type_deduction = true, xref:nlohmann/basic_json-00/value_t.adoc[value_t] manual_type = value_t::array); ---- == Parameters [cols=2] |=== | Name | Description | *init* | The object to construct from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#