[#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 reference providing modifiable access to the `Json` object associated with the specified `key` in this `JsonObject`; if this `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 `key` is valid UTF‐8 (see `bdlde::Utf8Util::isValid`). [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 reference providing non‐modifiable access to the `Json` object associated with the specified `key` in this `JsonObject`. The behavior is undefined unless `key` is valid UTF‐8 (see `bdlde::Utf8Util::isValid`) and this `JsonObject` already contains a `Json` object 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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#