Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
https://stackoverflow.com/questions/74856371/c-sharp-jsonserializer-deserialize-fails-if-property-has-null-value-despite-json by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0), Unix 6.8.0.1014
System.Text.Json version: System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51

{"config":{"c1":"All","c2":"is peachy"},"message":"We found a config object"}
Dumping object(WebResponse)
 Config   : 
           {
           C1  : All
           C2  : is peachy
           }
 Message  : We found a config object
{"Config":{"C1":"All","C2":"is peachy"},"Message":"We found a config object"}

{"config":"null","message":"Config is \"null\""}
Dumping object(WebResponse)
 Config   : null
 Message  : Config is "null"
{"Message":"Config is \u0022null\u0022"}
Cached Result
Last Run: 11:41:13 pm
Compile: 0.019s
Execute: 0.12s
Memory: 11.76Mb
CPU: 0.139s