#NEWLINE# def _from_json( self , datastring ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return jsonutils . loads ( datastring ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# msg = _ ( 'cannot understand JSON' ) #NEWLINE# raise exception . MalformedRequestBody ( reason = msg )