A set of technologies in the .NET Framework for building web applications and XML web services.
I don't think this has anything to do with ProblemDetails itself but the JSON serializer that is writing the data out. Prior to 3.1 ASP.NET used Newtonsoft.Json which was probably configured to write out default values for properties (aka null for unset reference types).
However in 3.1 ASP.NET uses System.Text.Json by default. I haven't tested it myself but it is likely the default for the new serializer is to ignore default values and hence it won't write them out. You can refer to the migration guide here to see all the differences.