You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JsonConvert.DeserializeObject can throw several unexpected exceptions #1947
JsonConvert.DeserializeObject can throw several unexpected exceptions (JsonReaderException is the one that is usually expected). These are:
ArgumentException
JsonSerializationException
JsonWriterException
NullReferenceException
Documentation doesn't say anything about this, but deserialization is definitely weird place for a JsonWriterException. ArgumentException and NullReferenceException should not be possible in my opinion (if the input strings are non-empty). Here is the complete program to reproduce all of this:
The last 3 seem to have been fixed. However, the first one now throws the error: Can not add Newtonsoft.Json.Linq.JValue to Newtonsoft.Json.Linq.JObject.
Which I presume is still a bug
The last 3 seem to have been fixed. However, the first one now throws the error: Can not add Newtonsoft.Json.Linq.JValue to Newtonsoft.Json.Linq.JObject. Which I presume is still a bug
Activity
AaronJThompson commentedon Nov 10, 2021
The last 3 seem to have been fixed. However, the first one now throws the error:
Can not add Newtonsoft.Json.Linq.JValue to Newtonsoft.Json.Linq.JObject.Which I presume is still a bug
Aws-amplify-cli-puppy commentedon Oct 14, 2025
https://linebackersudoku.github.io/unsophisticated73/