nlohmann::basic_json::operator[]

Subscript operator

Synopsis

Declared in <nlohmann/json.hpp>

template<typename T>
reference
operator[](T* key);

Return Value

the type of an element reference

Parameters

NameDescription
keyThe right operand