Files
ArduinoJson/JsonHashTable.h

32 lines
547 B
C
Raw Normal View History

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