code: def encode(self, obj):
          
          s = super(CustomEncoder, self).encode(obj)
          # If uncompressed, postprocess for formatting
          if len(s.splitlines()) > 1:
              s = self.postprocess(s)
          return s
docs: Fired for every object.