[#BloombergLP-bdljsn-Json-operator_subs-07] = 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 object's member for `key`. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Json.adoc[Json]& operator[](std::string_view const& key); ---- == Description Return a reference providing modifiable access to the `Json` object associated with the specified `key` in the `JsonObject` held by this object. If `isNull()`, then type is changed to object. If the `JsonObject` does not already contain a `Json` object associated with `key`, first insert a new default‐constructed `Json` object associated with `key`. The behavior is undefined unless `isObject()` or `isNull()`. == Return Value modifiable reference to the held object's member for `key` == Parameters [cols="1,4"] |=== | Name| Description | *key* | UTF‐8 member name |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#