nlohmann::basic_json::operator[]

access specified array element

Synopsis

Declared in <nlohmann/json.hpp>

reference
operator[](size_type idx);

Return Value

reference to the element at index idx

Parameters

NameDescription
idxindex of the element to access