[#nlohmann-basic_json-0e-operator_subs-03]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-0e.adoc[basic&lowbar;json&lt;&gt;]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

Subscript operator

== Synopsis

Declared in `&lt;nlohmann&sol;json&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:nlohmann/basic_json-0e/const_reference.adoc[const&lowbar;reference]
operator&lsqb;&rsqb;(object&lowbar;t::key&lowbar;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]#
