converting the JSON data to a float type before returning to the WebUI