Default JSON encoder handles datetime.date objects.

Flask's default JSON encoder handles only `datetime.datetime` objects (via Werkzeug's `http_date` function). It should also handle `datetime.date` objects, a common data type that occurs in JSON used to represent dates in backend models.