Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JsonObjectStream does not allow a JsonArray as root node #126

Open
tius2000 opened this issue Jun 5, 2016 · 1 comment
Open

JsonObjectStream does not allow a JsonArray as root node #126

tius2000 opened this issue Jun 5, 2016 · 1 comment
Labels

Comments

@tius2000
Copy link

tius2000 commented Jun 5, 2016

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.

@hreintke
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants