Test empty object serialization

This commit is contained in:
Benoit Blanchon
2014-09-30 16:31:22 +02:00
parent d3cf568d07
commit ab2587f089
6 changed files with 53 additions and 0 deletions

View File

@ -87,4 +87,9 @@ JsonNode* JsonObject::getOrCreateNodeAt(char const* key)
_node->content.asObject.child = newKeyNode;
return newValueNode;
}
void JsonObject::serialize(char* buffer, size_t bufferSize) const
{
strcpy_s(buffer, bufferSize, "{}");
}