SmingRTOS icon indicating copy to clipboard operation
SmingRTOS copied to clipboard

Should JsonObjectStream expose a reference to JsonBuffer?

Open tius2000 opened this issue 9 years ago • 0 comments

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.

tius2000 avatar Jun 05 '16 07:06 tius2000