#NEWLINE# def check_output_json( self , want , got , optionsflags ) : #NEWLINE# #INDENT# '\n        Tries to compare want and got as if they were JSON-encoded data\n        ' #NEWLINE# ( want , got ) = strip_quotes ( want , want ) #NEWLINE# try : #NEWLINE# #INDENT# want_json = json . loads ( want ) #NEWLINE# got_json = json . loads ( got ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( want_json == got_json )