[#nlohmann-basic_json-00-operator_subs-02]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/basic_json-00.adoc[basic&lowbar;json]::operator&lsqb;&rsqb;
:relfileprefix: ../../
:mrdocs:

access specified array element

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:nlohmann/basic_json-00/const_reference.adoc[const&lowbar;reference]
operator&lsqb;&rsqb;(xref:nlohmann/basic_json-00/size_type.adoc[size&lowbar;type] idx) const;
----

== Return Value

the type of an element const reference

== Parameters

[cols="1,4"]
|===
| Name| Description
| *idx*
| The right operand
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
