def _default_json_default(obj):
if isinstance(obj, (datetime.datetime, datetime.date, datetime.time)):<EOL><INDENT>return obj.strftime(default_date_fmt)<EOL><DEDENT>else:<EOL><INDENT>return str(obj)<EOL><DEDENT>
Coerce everything to strings.
    All objects representing time get output according to default_date_fmt.