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

explicitly create a binary array (without subtype)

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
static
xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json]
binary(binary&lowbar;t::container&lowbar;type const& init);
----

== Return Value

a JSON binary value holding a copy of _init_

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *init*
| container with the binary data
|===


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