forked from bblanchon/ArduinoJson
Test empty object serialization
This commit is contained in:
@ -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, "{}");
|
||||
}
|
@ -24,6 +24,8 @@ public:
|
||||
|
||||
bool operator==(const JsonObject& other) const;
|
||||
|
||||
void serialize(char* buffer, size_t bufferSize) const;
|
||||
|
||||
private:
|
||||
JsonNode* _node;
|
||||
|
||||
|
Reference in New Issue
Block a user