harvester/utils/__init__.py
def decode_faulty_json(text):
    """
    Attempt to decode json containing newlines inside strings,
    which is invalid for the JSON standard.
    """
    text = text.replace('\n', ' ').replace('\r', '')
    return json.loads(text)

    Attempt to decode json containing newlines inside strings,
    which is invalid for the JSON standard.
    
Attempt to decode json containing newlines inside strings,
which is invalid for the JSON standard.
Attempt to decode json containing newlines inside strings which is invalid for the JSON standard .
def decode_faulty_json(text):
    text = text.replace('\n', ' ').replace('\r', '')
    return json.loads(text)
def decode_faulty_json ( text ) : text = text . replace ( '\n' , ' ' ) . replace ( '\r' , '' ) return json . loads ( text )
Attempt to decode json containing newlines inside strings,
which is invalid for the JSON standard.
Attempt to decode json containing newlines inside strings which is invalid for the JSON standard .
"""
    Attempt to decode json containing newlines inside strings,
    which is invalid for the JSON standard.
    """
text