[#nlohmann-basic_json-0c-2constructor-0e0] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0c.adoc[basic_json]::basic_json :relfileprefix: ../../ :mrdocs: construct an array with count copies of given value == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- basic_json( xref:nlohmann/basic_json-0c/size_type.adoc[size_type] cnt, xref:nlohmann/basic_json-0c.adoc[basic_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]#