mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
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