mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			604 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			604 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // ArduinoJson - https://arduinojson.org
 | |
| // Copyright © 2014-2022, Benoit BLANCHON
 | |
| // MIT License
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <ArduinoJson/Collection/CollectionData.hpp>
 | |
| 
 | |
| namespace ARDUINOJSON_NAMESPACE {
 | |
| 
 | |
| template <typename TAdaptedString>
 | |
| inline VariantData* objectGetMember(const CollectionData* obj,
 | |
|                                     TAdaptedString key) {
 | |
|   if (!obj)
 | |
|     return 0;
 | |
|   return obj->getMember(key);
 | |
| }
 | |
| 
 | |
| template <typename TAdaptedString>
 | |
| void objectRemove(CollectionData* obj, TAdaptedString key) {
 | |
|   if (!obj)
 | |
|     return;
 | |
|   obj->removeMember(key);
 | |
| }
 | |
| }  // namespace ARDUINOJSON_NAMESPACE
 |