nlohmann::basic_json::operator[]

access specified array element

Synopsis

Declared in <nlohmann/json.hpp>

const_reference
operator[](size_type idx) const;

Return Value

the type of an element const reference

Parameters

NameDescription
idxThe right operand