#NEWLINE# def default( self , o ) : #NEWLINE# #INDENT# 'Inherit docs.' #NEWLINE# if ( type ( o ) in JSON_DEFAULTS ) : #NEWLINE# #INDENT# encoder = JSON_DEFAULTS [ type ( encoder ) ] [ 0 ] #NEWLINE# json_struct = encoder ( o ) #NEWLINE# json_struct [ self . TYPE_ID ] = type ( o ) . __name__ #NEWLINE# return json_struct #NEWLINE# #UNINDENT# return super ( JsonEncoder , self ) . default ( o )