'Tries to compare want and got as if they were JSON-encoded data'

def check_output_json(self, want, got, optionsflags):

    (want, got) = strip_quotes(want, got)
    try:
        want_json = json.loads(want)
        got_json = json.loads(got)
    except Exception:
        return False
    return (want_json == got_json)
