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

JSON object item.

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

Constructors, destructors, conversion operators

operator JsonToken() const
Key token.

Public functions

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

Function documentation

Corrade::Utility::JsonObjectItem::operator 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.

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

Value.

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