[#nlohmann-basic_json-05-2constructor-0d]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-05.adoc[basic&lowbar;json&lt;&gt;]::basic&lowbar;json
:relfileprefix: ../../
:mrdocs:

create a JSON value from an existing one

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename BasicJsonType&gt;
requires detail&colon;&colon;is&lowbar;basic&lowbar;json&lt;BasicJsonType&gt;&colon;&colon;value&amp;&amp; !std&colon;&colon;is&lowbar;same&lt;basic&lowbar;json, BasicJsonType&gt;&colon;&colon;value
basic&lowbar;json(BasicJsonType const& val);
----

== Parameters

[cols="1,4"]
|===
|Name|Description

| *val*
| The object to copy construct from
|===


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