
weatherData =  {'coord': {'lon': -72.5949, 'lat': 42.1726}, 'weather': [{'id': 803, 'main': 'Clouds', 'description': 'broken clouds', 'icon': '04d'}], 'base': 'stations', 'main': {'temp': 279.29, 'feels_like': 279.29, 'temp_min': 278.09, 'temp_max': 281.43, 'pressure': 1028, 'humidity': 96}, 'visibility': 10000, 'wind': {'speed': 0.45, 'deg': 158, 'gust': 0.89}, 'clouds': {'all': 75}, 'dt': 1698153298, 'sys': {'type': 2, 'id': 2089527, 'country': 'US', 'sunrise': 1698145986, 'sunset': 1698184549}, 'timezone': -14400, 'id': 4933002, 'name': 'Chicopee', 'cod': 200}


jsonWeather = json.dumps(weatherRecord,indent=4 )
print("\njsonWeather")
print(jsonWeather)

jsonWeather
{
    "sampleDate": "2023-1024",
    "sampleTime": "09:19:36",
    "city": "Chicopee",
    "state": "Ma",
    "country": "Us",
    "latitude": 42.1726,
    "longitude": -72.5949,
    "temperature": "43.32",
    "temperatureUnits": "F",
    "pressure": "14.91",
    "pressureUnits": "psi",
    "humidity": 96,
    "description": "broken clouds"
}

