importing tickets, datetime json encoder