  
  
  class JSONEncoder(json.JSONEncoder):
      """
      JSONEncoder subclass that knows how to encode date/time and decimal types.
      """
      def default(self, o):
          # See "Date Time String Format" in the ECMA-262 specification.
          if isinstance(o, datetime.datetime):
              r = o.isoformat()
 
</s> remove         # See "Date Time String Format" in the ECMA-262 specification.
 </s> add         # For Date Time string spec, see ECMA 262
        # http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.15 </s> remove             (self._data, self._files) = self._parse()
 </s> add             self._data, self._files = self._parse() </s> remove                 return parser.parse(self.stream, meta=self.META,
                                    upload_handlers=self.upload_handlers)
 </s> add                 parsed = parser.parse(self.stream, meta=self.META,
                                      upload_handlers=self.upload_handlers)
                # Parser classes may return the raw data, or a
                # DataAndFiles object.  Unpack the result as required.
                try:
                    return (parsed.data, parsed.files)
                except AttributeError:
                    return (parsed, None) </s> remove             (self._data, self._files) = self._parse()
 </s> add             self._data, self._files = self._parse()
    JSONEncoder subclass that knows how to encode date/time,
    decimal types, and generators.
  
  
  class JSONEncoder(json.JSONEncoder):
      """
    JSONEncoder subclass that knows how to encode date/time,
    decimal types, and generators.
      """
      def default(self, o):
          # See "Date Time String Format" in the ECMA-262 specification.
          if isinstance(o, datetime.datetime):
              r = o.isoformat()
keep keep keep keep replace keep keep keep keep keep
 Parsers may return raw data, or a DataAndFiles object 
djangorestframework/utils/encoders.py