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 object to construct from
vala class to store JSON values