❔ Why does the JsonSerializer.Deserialize return a nullable object
I found this following example in the docs about the deserializer:
based on the docs it looks like it would throw an exception if the json can't be deserialized. The type, for deserialization, in this case is
Thx!
based on the docs it looks like it would throw an exception if the json can't be deserialized. The type, for deserialization, in this case is
WeatherForecase not WeatherForecast? . Why does it return nullable<..>? Is there a way to make it return the acutal instance or just throw an error? I want to avoid many (maybe unnecessary) null checks? Thx!