Is there a reason the JSON session serializer options has a case sensitive dictionary of known session keys?
I believe the default for .NET has been case insensitive for a long time. Especially in the state sharing use case this might be confusing why values are null if the key isn't exactly the same. If this was chosen on purpose it might be an idea to call this out in documentation for clarity?
Describe the bug
Is there a reason the JSON session serializer options has a case sensitive dictionary of known session keys?
I believe the default for .NET has been case insensitive for a long time. Especially in the state sharing use case this might be confusing why values are
null
if the key isn't exactly the same. If this was chosen on purpose it might be an idea to call this out in documentation for clarity?https://github.com/dotnet/systemweb-adapters/blob/447194bb2fec008473133fb597958e2e77d21945/src/Microsoft.AspNetCore.SystemWebAdapters.Abstractions/SessionState/Serialization/JsonSessionSerializerOptions.cs#L17