mirror of
				https://github.com/bblanchon/ArduinoJson.git
				synced 2025-11-04 08:31:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			730 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			730 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() {}
 | 
						|
 | 
						|
	bool containsKey(const char* key);
 | 
						|
 | 
						|
	JsonArray getArray(const char* key);
 | 
						|
	bool getBool(const char* key);
 | 
						|
	double getDouble(const char* key);
 | 
						|
	JsonHashTable getHashTable(const char* key);
 | 
						|
	long getLong(const char* key);
 | 
						|
	char* getString(const char* key);
 | 
						|
 | 
						|
private:
 | 
						|
 | 
						|
	JsonHashTable(char* json, jsmntok_t* tokens);
 | 
						|
	jsmntok_t* getToken(const char* key);
 | 
						|
};
 | 
						|
 | 
						|
#endif |