[#BloombergLP-bdljsn-Json-operator_subs-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::operator[] :relfileprefix: ../../../ :mrdocs: Return a non‐modifiable reference to the held array element at `index`. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Json.adoc[Json] const& operator[](std::size_t index) const; ---- == Description Return a reference providing non‐modifiable access to the element at the specified `index` in the `JsonArray` held by this object. The behavior is undefined unless `isArray()` returns true and `index < theArray().size()`. == Return Value a non‐modifiable reference to the element at the specified position == Parameters [cols="1,4"] |=== | Name| Description | *index* | zero‐based element position |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#