Malformed JSON From APIs: How to Handle and Sanitize It