nlohmann::basic_json::operator[]

access specified object element

Synopsis

Declared in <nlohmann/json.hpp>

reference
operator[](object_t::key_type key);

Return Value

the type of an element reference

Parameters

NameDescription
keyThe right operand