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

construct an array with count copies of given value

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
basic&lowbar;json(
    xref:nlohmann/basic_json-0c/size_type.adoc[size&lowbar;type] cnt,
    xref:nlohmann/basic_json-0c.adoc[basic&lowbar;json] const& val);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cnt*
| the number of copies of _val_ to create
| *val*
| the value to copy
|===


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