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

Should JsonObjectStream expose a reference to JsonBuffer? #125

Open
tius2000 opened this issue Jun 5, 2016 · 0 comments
Open

Should JsonObjectStream expose a reference to JsonBuffer? #125

tius2000 opened this issue Jun 5, 2016 · 0 comments
Labels

Comments

@tius2000
Copy link

tius2000 commented Jun 5, 2016

To create an array of array the method JsonBuffer::createArray() is required:

DynamicJsonBuffer buffer;
JsonArray& list = buffer.createArray();
JsonArray& item = buffer.createArray();
item.add(1);
list.add( item );

However, the class JsonObjectStream does not a reference to the underlying JsonBuffer. If this is desired, I will provide a patch.

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