support for the /weather api to return the temperature for a city in json.