Trying to convert distance by converting text to json object