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

construct a JSON container given an iterator range

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class InputIT&gt;
requires std&colon;&colon;is&lowbar;same&lt;InputIT, typename basic&lowbar;json&lowbar;t&colon;&colon;iterator&gt;&colon;&colon;value &verbar;&verbar;
                   std&colon;&colon;is&lowbar;same&lt;InputIT, typename basic&lowbar;json&lowbar;t&colon;&colon;const&lowbar;iterator&gt;&colon;&colon;value
basic&lowbar;json(
    InputIT first,
    InputIT last);
----

== Parameters

[cols=2]
|===
| Name
| Description
| *first*
| The object to construct from
|===


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