Added key() and value() shortcuts

This commit is contained in:
Benoît Blanchon
2014-07-23 12:56:29 +02:00
parent 0449ee4fd3
commit 5129f3400c

View File

@ -41,6 +41,18 @@ namespace ArduinoJson
{ {
return JsonToken::operator!=(other); return JsonToken::operator!=(other);
} }
// Get the key of the JsonPair pointed by the iterator
const char* key() const
{
return operator*().key();
}
// Get the key of the JsonPair pointed by the iterator
JsonValue value() const
{
return operator*().value();
}
}; };
} }
} }