mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			649 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			649 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
 | |
| {
 | |
| 	template <int N>
 | |
| 	friend class JsonParser;
 | |
| 
 | |
| 	friend class JsonArray;
 | |
| 
 | |
| public:
 | |
| 
 | |
| 	JsonHashTable() {}
 | |
| 
 | |
| 	JsonArray getArray(char* key);
 | |
| 	bool getBool(char* key);
 | |
| 	double getDouble(char* key);
 | |
| 	JsonHashTable getHashTable(char* key);
 | |
| 	long getLong(char* key);
 | |
| 	char* getString(char* key);
 | |
| 
 | |
| private:
 | |
| 
 | |
| 	JsonHashTable(char* json, jsmntok_t* tokens);
 | |
| 	jsmntok_t* getToken(char* key);
 | |
| };
 | |
| 
 | |
| #endif |