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

JSON object item.

Returned when iterating JsonToken::asObject(). See Iterating objects and arrays for more information.

Public types

using KeyType = Containers::StringView
Key type.

Constructors, destructors, conversion operators

operator const JsonToken&() const
Key token.

Public functions

auto key() const -> Containers::StringView
Key.
auto value() const -> const JsonToken&
Value.

Typedef documentation

typedef Containers::StringView Corrade::Utility::JsonObjectItem::KeyType

Key type.

Used by JsonView::find() and JsonView::operator[]().

Function documentation

Corrade::Utility::JsonObjectItem::operator const JsonToken&() const

Key token.

Key is retrivable as JsonToken::asString() on the returned token, value as JsonToken::firstChild().

Containers::StringView Corrade::Utility::JsonObjectItem::key() const

Key.

Equivalent to calling JsonToken::asString() on the token.

const JsonToken& Corrade::Utility::JsonObjectItem::value() const

Value.

Equvialent to accessing JsonToken::firstChild() on the token.