Files
ArduinoJson/JsonHashTable.h
2014-01-11 16:41:18 +01:00

32 lines
547 B
C++

/*
* malloc-free JSON parser for Arduino
* Benoit Blanchon 2014 - MIT License
*/
#ifndef __JSONHASHTABLE_H
#define __JSONHASHTABLE_H
#include "JsonObjectBase.h"
class JsonArray;
class JsonHashTable : public JsonObjectBase
{
friend class JsonArray;
friend class JsonParserBase;
public:
JsonHashTable() {}
JsonArray getArray(char* key);
JsonHashTable getHashTable(char* key);
char* getString(char* key);
private:
JsonHashTable(char* json, jsmntok_t* tokens);
jsmntok_t* getToken(char* key);
};
#endif