import json


def decode_json(s):
    """
    Compatible with JSON format that incorrectly uses '\' escape character.
    Such as \&quot; \&#39;
    See http://stackoverflow.com/questions/7921164/syntax-error-when-parsing-json-string for details.
    JSON online verification：http://jsonlint.com/
    """
    result = None
    if s:
        s = s.replace(r'\&', '')
        try:
            result = json.loads(s)
        except ValueError:
            pass
    return result