parameters: (self, o)
return_statement: return super(JsonEncoder, self).default(o)
docstring: Inherit docs.
docstring_summary: Inherit docs.
docstring_tokens: Inherit docs .
function: def default(self, o):
      """Inherit docs."""
      if type(o) in _TYPE_TO_ENCODER:
        encoder = _TYPE_TO_ENCODER[type(o)]
        json_struct = encoder(o)
        json_struct[self.TYPE_ID] = type(o).__name__
        return json_struct
      return super(JsonEncoder, self).default(o)
function_tokens: def default ( self , o ) : if type ( o ) in _TYPE_TO_ENCODER : encoder = _TYPE_TO_ENCODER [ type ( o ) ] json_struct = encoder ( o ) json_struct [ self . TYPE_ID ] = type ( o ) . __name__ return json_struct return super ( JsonEncoder , self ) . default ( o )