Corrade::Utility::JsonObjectView class new in Git master

JSON object view.

Returned from Json::parseObject() and JsonToken::asObject(). See Iterating objects and arrays for more information.

Public functions

auto begin() const -> JsonObjectIterator
Iterator to the first element.
auto cbegin() const -> JsonObjectIterator
auto end() const -> JsonObjectIterator
Iterator to (one item after) the last element.
auto cend() const -> JsonObjectIterator
auto find(Containers::StringView key) const -> JsonIterator
Find an object value by key.
auto operator[](Containers::StringView key) const -> JsonToken
Access an object value by key.

Function documentation

JsonObjectIterator Corrade::Utility::JsonObjectView::cbegin() const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

JsonObjectIterator Corrade::Utility::JsonObjectView::cend() const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

JsonIterator Corrade::Utility::JsonObjectView::find(Containers::StringView key) const

Find an object value by key.

Calls JsonToken::find(Containers::StringView) const on the enclosing object token. Useful for performing a lookup directly on the value returned from Json::parseObject().

JsonToken Corrade::Utility::JsonObjectView::operator[](Containers::StringView key) const

Access an object value by key.

Calls JsonToken::operator[](Containers::StringView) const on the enclosing object token. Useful for performing a lookup directly on the value returned from Json::parseObject().