Use a JSON serializable DateTime for resource representation.