[#BloombergLP-bdljsn-JsonObject-operator_subs-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]::operator&lsqb;&rsqb;
:relfileprefix: ../../../
:mrdocs:

Subscript operators

== Synopses

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

Return a modifiable reference to the member associated with `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json.adoc[Json]&
xref:BloombergLP/bdljsn/JsonObject/operator_subs-0bc.adoc[operator&lsqb;&rsqb;](std::string&lowbar;view const& key);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/operator_subs-0bc.adoc[_» more&period;&period;&period;_]#

Return a non&hyphen;modifiable reference to the member associated with `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/Json.adoc[Json] const&
xref:BloombergLP/bdljsn/JsonObject/operator_subs-0b7.adoc[operator&lsqb;&rsqb;](std::string&lowbar;view const& key) const;
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/operator_subs-0b7.adoc[_» more&period;&period;&period;_]#

== Return Value

* modifiable reference to the member associated with `key`
* a non&hyphen;modifiable reference to the element at the specified position

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| UTF&hyphen;8 member name
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
