nlohmann::basic_json::operator[]

access specified object element

Synopsis

Declared in <nlohmann/json.hpp>
const_reference
operator[](object_t::key_type const& key) const;


Return Value

the type of an element const reference

Parameters

Name Description
key The right operand

Created with MrDocs