mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Added as<JsonArray>() as a synonym for as<JsonArray&>()... (issue #291)
This commit is contained in:
@@ -137,7 +137,7 @@ class JsonArray : public Internals::JsonPrintable<JsonArray>,
|
||||
|
||||
// Gets the value at the specified index.
|
||||
template <typename T>
|
||||
T get(size_t index) const {
|
||||
typename Internals::JsonVariantAs<T>::type get(size_t index) const {
|
||||
node_type *node = getNodeAt(index);
|
||||
return node ? node->content.as<T>() : JsonVariant::defaultValue<T>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user