Made JsonValue inherit from JsonObjectBase

This commit is contained in:
Benoît Blanchon
2014-07-16 13:41:00 +02:00
parent d189bd7140
commit 6a868e46bd
7 changed files with 61 additions and 73 deletions

View File

@ -23,8 +23,13 @@ namespace ArduinoJson
public:
JsonHashTable() {}
JsonHashTable() {}
bool success()
{
return JsonObjectBase::success() && tokens->type == JSMN_OBJECT;
}
JsonValue operator[](const char* key);
bool containsKey(const char* key)
@ -61,7 +66,11 @@ namespace ArduinoJson
private:
JsonHashTable(char* json, jsmntok_t* tokens);
JsonHashTable(char* json, jsmntok_t* tokens)
: JsonObjectBase(json, tokens)
{
}
};
}
}