What changes would you need to make to the code above to serve a JSON object instead of a string?
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence