mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 10:47:48 +00:00 
			
		
		
		
	Fixing framework.
This commit is contained in:
		| @@ -324,12 +324,12 @@ namespace OpenWifi::RESTAPI_utils { | ||||
|  | ||||
|     inline void field_from_json(const Poco::JSON::Object::Ptr &Obj, const char *Field, double & Value) { | ||||
|         if(Obj->has(Field) && !Obj->isNull(Field)) | ||||
|             Value = Obj->get(Field).extract<double>(); | ||||
|             Value = (double) Obj->get(Field); | ||||
|     } | ||||
|  | ||||
|     inline void field_from_json(const Poco::JSON::Object::Ptr &Obj, const char *Field, float & Value) { | ||||
|         if(Obj->has(Field) && !Obj->isNull(Field)) | ||||
|             Value = (float) Obj->get(Field).extract<double>(); | ||||
|             Value = (float) Obj->get(Field); | ||||
|     } | ||||
|  | ||||
|     inline void field_from_json(const Poco::JSON::Object::Ptr &Obj, const char *Field, bool &Value) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959