SmingRTOS
SmingRTOS copied to clipboard
JsonObjectStream does not allow a JsonArray as root node
JsonObjectStream currently sets rootnode to JsonObject within the constructor. So it cannot be used if an JsonArray is required as root node.
A possible solution would be either a second constructor or a new class, e. g. JsonArrayStream.
Probably the best solution is to add a second constructor. Can you create a PR for that ?