Support for .NET 5

See answer in Dictionary<string,object> does not seem to be deserialized properly - #2 by andreasohlund