diff --git a/JsonParser/JsonObjectIterator.h b/JsonParser/JsonObjectIterator.h index 59bd77c1..d3c1367b 100644 --- a/JsonParser/JsonObjectIterator.h +++ b/JsonParser/JsonObjectIterator.h @@ -41,6 +41,18 @@ namespace ArduinoJson { 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(); + } }; } } \ No newline at end of file