add a warning for malformed JSON