Dynamic size
Created by: leventesen
It will be perfect if we can find a way to let the size to be dynamic in your Parser and/or Generator :)
I think generator will not be too much tricky compared to parser. Without breaking the code, you can add extra classes that will merge the static allocated objects and arrays.
Here is an example:
JsonObject<2> staticObject1;
JsonObject<1> staticObject2;
staticObject1["key1"] = 1;
staticObject1["key2"] = 2;
staticObject2["key3"] = 3;
DynamicJsonObject dynamicObject;
dynamicObject.merge(staticObject1);
dynamicObject.merge(staticObject2);
Serial.print(dynamicObject);