[#nlohmann-basic_json-0c-get_to-0e]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]::get&lowbar;to
:relfileprefix: ../../
:mrdocs:

get a value (explicit)

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename ValueType&gt;
requires !detail&colon;&colon;is&lowbar;basic&lowbar;json&lt;ValueType&gt;&colon;&colon;value&amp;&amp;
                   detail&colon;&colon;has&lowbar;from&lowbar;json&lt;basic&lowbar;json&lowbar;t, ValueType&gt;&colon;&colon;value
ValueType&
get&lowbar;to(ValueType& v) const noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Exception specification

This function is potentially-throwing unless `noexcept(JSONSerializer&lt;ValueType, void&gt;&colon;&colon;from&lowbar;json(std&colon;&colon;declval&lt;const basic&lowbar;json&lowbar;t &amp;&gt;(), v))`.

== Return Value

reference to _v_

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| value to write the converted result to
|===


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