[#BloombergLP-bdljsn-JsonObject-operator_subs-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]::operator[] :relfileprefix: ../../../ :mrdocs: Subscript operators == Synopses Declared in `<bdljsn_json.h>` Return a modifiable reference to the member associated with `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Json.adoc[Json]& xref:BloombergLP/bdljsn/JsonObject/operator_subs-0bc.adoc[operator[]](std::string_view const& key); ---- [.small]#xref:BloombergLP/bdljsn/JsonObject/operator_subs-0bc.adoc[_» more..._]# Return a non‐modifiable reference to the member associated with `key`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Json.adoc[Json] const& xref:BloombergLP/bdljsn/JsonObject/operator_subs-0b7.adoc[operator[]](std::string_view const& key) const; ---- [.small]#xref:BloombergLP/bdljsn/JsonObject/operator_subs-0b7.adoc[_» more..._]# == Return Value * modifiable reference to the member associated with `key` * a non‐modifiable reference to the element at the specified position == Parameters [cols="1,4"] |=== | Name| Description | *key* | UTF‐8 member name |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#