Description
The NetwtonSoft documentation seems to lack a LOT of detail. For example:
The documentation for JsonConvert.DeserializeObject Method (String) (which I picked at random), found at:
https://www.newtonsoft.com/json/help/html/M_Newtonsoft_Json_JsonConvert_DeserializeObject__1.htm
The documentation makes NO mention of the exceptions that may be thrown by this method, if any. However, if an invalid JSON string is passed to this method, the following exception is thrown:
Newtonsoft.Json.JsonReaderException
So, in reality this method should be wrapped in a try/catch when used.
I'll apologize in advance if I missed some preamble in the documentation that indicated all methods can throw an exception, but I find more and more "documentation" these days contains less and less details and I find myself wrapping all third party code in try/catch -- just because the documentation makes no mention of what exceptions (if any) may be raised.