Added a test that adds a empty nested array in an array

This commit is contained in:
Benoît Blanchon
2014-06-25 13:28:56 +02:00
parent 4c387e9062
commit b8df795cb5
3 changed files with 21 additions and 8 deletions

View File

@ -38,6 +38,13 @@ public:
addItem(JSON_BOOLEAN, v);
}
void add(JsonObjectBase& value)
{
JsonObjectValue v;
v.object = &value;
addItem(JSON_OBJECT, v);
}
void writeTo(char* buffer, size_t bufferSize)
{
StringBuilder sb(buffer, bufferSize);