I am having 6 python lists as follows:
dows=['Mon', 'Tue', 'Wed', 'Thu', 'Fri']
dates=['10-4', '10-5', '10-6', '10-7', '10-8']
maxs=['24', '23', '17', '16', '18']
mins=['13', '13', '11', '10', '7']
precipitation_probabilities=['0', '0', '76', '70', '21']
wind_speeds=['13', '21', '16', '8', '11']
and like to convert them to json, which I want eventually save to a drive as a file (on rasppberry pi) in format as follows:
{
"dows":['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
"dates":['10-4', '10-5', '10-6', '10-7', '10-8'],
"maxs":['24', '23', '17', '16', '18'],
"mins":['13', '13', '11', '10', '7'],
"precipitation_probabilities":['0', '0', '76', '70', '21'],
"wind_speeds":['13', '21', '16', '8', '11']
}
I've tried everything without luck.