Made JsonValue inherit from JsonObjectBase

This commit is contained in:
Benoît Blanchon committed 2014-07-16 13:42:36 +02:00
1 parent d189bd7140
commit 6a868e46bd
7 files changed
+61 -73

No files matched your search

+11 -2
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)
{
}
};
}
}