Okay, can you please modify the function so that it checks the JSON format for errors so that the Python script continues to work even if the JSON file is invalid?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence