#NEWLINE# def __call__( self , js_object ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# jsonclass = js_object [ '_class_' ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# return dict ( ( ( str ( k ) , v ) for ( k , v ) in js_object . items ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# decoder = self . _registry [ jsonclass ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise ValueError ( ( 'JSON decoder for %r not registered.' % ( self , ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return decoder ( js_object [ 'value' ] )