JSON conversion of event dictionary

JSON written to a file called out.out

Event list sorted by date

datetime converted back to string as it's not JSON serializable