def default(self, obj):
if isinstance(obj, datetime.datetime):<EOL><INDENT>return self._encode_datetime(obj)<EOL><DEDENT>return json.JSONEncoder.default(self, obj)<EOL>
Encode values as JSON strings.

        This method overrides the default implementation from
        `json.JSONEncoder`.