Fixed inner object bug

This commit is contained in:
Benoit Blanchon
2014-09-28 21:04:59 +02:00
parent bc44c36385
commit e190b20ae1
5 changed files with 47 additions and 15 deletions

View File

@ -51,6 +51,11 @@ JsonValue JsonObject::operator[](char const* key)
return JsonValue(node);
}
bool JsonObject::operator==(JsonObject const& other) const
{
return _node == other._node;
}
JsonNode* JsonObject::getOrCreateNodeAt(char const* key)
{
if (!_node || _node->type != JSON_OBJECT) return 0;