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