Actually use JSON encoder with datetimes