nlohmann::basic_json::operator[]

access specified object element

Synopsis

Declared in <nlohmann/json.hpp>

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

Return Value

reference to the element with key key

Parameters

NameDescription
keykey of the element to access