How to skip/ignore/handle invalid json objects in Newtonsoft JSON?
Let's say we have string like:
[{
"$id": "xc1",
"sdfdsgds0sdfsadgdxc,sfgsagdfgdsfdm",
"gxcgdfs"
}, {
"$id": "2",
"Property1": "Value",
"Property2": "Value2"
}]
While doing
JsonConvert.DeserializeObject<T>(jsonString);
So the first object is invalid but I would like to read second valid one, but I've got JsonReaderException, is there a way to achieve ignoring/skipping invalid objects in array and go further with deserialization?