Due to some communication errors, I am sometimes receiving JSON strings with some illegal characters:
"{messageType\" : \"Test1\", \"from\" : \"F2D0B5C6-9875-46B5-8D4F\"}����1"
These illegal characters are making my JSON parser to break. I am using RapidJSON JSON parser (C/ C++). Can you please tell me if there is a way I can filter these unwanted characters from the string and also verify integrity of the json string.