Test that nested JsonObject can be stored

This commit is contained in:
Benoit Blanchon committed 2014-09-27 16:18:40 +02:00
1 parent bcc8cece24
commit bc44c36385
9 files changed
+114 -5

No files matched your search

+7
View File
@@ -5,6 +5,8 @@ struct JsonNode;
class JsonObject
{
friend JsonValue;
public:
JsonObject()
: _node(0)
@@ -20,6 +22,11 @@ public:
JsonValue operator[](const char* key);
bool operator== (const JsonObject& other) const
{
return _node == other._node;
}
private:
JsonNode* _node;