Optimized convert_ical_to_json with perltidy.