[#nlohmann-basic_json-00-operator_subs-07] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic_json]::operator[] :relfileprefix: ../../ :mrdocs: access specified object element == Synopsis Declared in `<nlohmann/json.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/basic_json-00/const_reference.adoc[const_reference] operator[](object_t::key_type const& key) const; ---- == Return Value the type of an element const reference == Parameters [cols=2] |=== | Name | Description | *key* | The right operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#