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

create a JSON value from a json&lowbar;ref wrapper

== Synopsis

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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ref*
| json&lowbar;ref wrapper holding the value to copy or move from
|===


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