nlohmann::basic_json::max_size

returns the maximum possible number of elements

Synopsis

Declared in <nlohmann/json.hpp>

size_type
max_size() const noexcept;

Return Value

the maximum possible number of elements (the array/object max_size() for arrays and objects, size() for all other types)