nlohmann::basic_json::basic_json

construct an array with count copies of given value

Synopsis

Declared in <nlohmann/json.hpp>

basic_json(
    size_type cnt,
    basic_json const& val);

Parameters

NameDescription
cntthe number of copies of val to create
valthe value to copy