In most cases, JsonSerializer throws JsonParsingException when encountering a malformed input. However, JsonSerializer.Deserialize can also throw many unexpected exceptions when deserializing files from the attached archive. These are:
ArgumentNullException
ArgumentException
FormatException
IndexOutOfRangeException
InvalidOperationException
You can run the following code to reproduce it (the path variable should contain the path to one of the extracted files):
using (var file = File.OpenRead(path))
{
JsonSerializer.Deserialize<dynamic>(file);
}
In most cases, JsonSerializer throws JsonParsingException when encountering a malformed input. However, JsonSerializer.Deserialize can also throw many unexpected exceptions when deserializing files from the attached archive. These are:
InvalidOperationException
You can run the following code to reproduce it (the path variable should contain the path to one of the extracted files):
Found via SharpFuzz.