SmingRTOS icon indicating copy to clipboard operation
SmingRTOS copied to clipboard

JsonObjectStream does not allow a JsonArray as root node

Open tius2000 opened this issue 9 years ago • 1 comments

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.

tius2000 avatar Jun 05 '16 08:06 tius2000

Probably the best solution is to add a second constructor. Can you create a PR for that ?

hreintke avatar Jun 13 '16 10:06 hreintke