[#BloombergLP-bdljsn-Json-operator_subs-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::operator[] :relfileprefix: ../../../ :mrdocs: Return a 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]& operator[](std::size_t index); ---- == Description Return a reference providing 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 modifiable reference to the held array element at `index` == Parameters [cols="1,4"] |=== | Name| Description | *index* | zero‐based element position |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#