Test that nested JsonObject can be stored

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

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;