mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added support for custom converters (closes #687)
This commit is contained in:
		| @@ -170,6 +170,10 @@ class ElementProxy : public VariantOperators<ElementProxy<TArray> >, | ||||
|     return _array.getOrAddElement(_index); | ||||
|   } | ||||
|  | ||||
|   friend bool convertToJson(VariantRef variant, const this_type& value) { | ||||
|     return variant.set(value.getUpstreamElement()); | ||||
|   } | ||||
|  | ||||
|   TArray _array; | ||||
|   const size_t _index; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user