diff --git a/JsonGenerator/JsonArray.h b/JsonGenerator/JsonArray.h index 3ca22d3f..c20c8da3 100644 --- a/JsonGenerator/JsonArray.h +++ b/JsonGenerator/JsonArray.h @@ -39,7 +39,8 @@ namespace ArduinoJson { if (itemCount >= N) return; - items[itemCount++].set(value); + Internals::JsonValue& v = items[itemCount++]; + v.set(value); } using JsonObjectBase::printTo;