Subscript operators
Declared in <bdljsn_json.h>
Return a modifiable reference to the held array element at index.
Json&
operator[](std::size_t index);
» more...
Return a non-modifiable reference to the held array element at index.
Json const&
operator[](std::size_t index) const;
» more...
Return a modifiable reference to the held object's member for key.
Json&
operator[](std::string_view const& key);
» more...
Return a non-modifiable reference to the held object's member for key.
Json const&
operator[](std::string_view const& key) const;
» more...
indexkey| Name | Description |
|---|---|
| index | zero-based element position |
| key | UTF-8 member name |