-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add non-primitive value support for dictionaries in JsonSerializer #29337
Comments
Will there ever be serialization-support for What do you think? Ps. if this is the wrong place for this kind of question I can also open an issue but I thought since this is very closely related to this issue I'll just comment on here. |
polymorphic
Error message is
Seems to be multiple problems:
update: using System.Text.Json preview7.19362.9 in LinqPad 5 (Framework 4.7.2) |
- appear to have fixes for all of the following: - #3835 -> dotnet/runtime#3229, dotnet/runtime#3315 - #8387 - #11813 - #12097 - #14022 - #24695 - dotnet/aspnetcore-internal#1363 -> #6393 -> #4763 - dotnet/corefx#36024 -> dotnet/runtime#28959 -> dotnet/runtime#29337 - dotnet/runtime#38126 -> #24513 - dotnet/runtime#38539 - dotnet/sdk#12831
- appear to have fixes for all of the following: - #3835 -> dotnet/runtime#3229, dotnet/runtime#3315 - #8387 - #11813 - #12097 - #14022 - #24695 - dotnet/aspnetcore-internal#1363 -> #6393 -> #4763 - dotnet/corefx#36024 -> dotnet/runtime#28959 -> dotnet/runtime#29337 - dotnet/runtime#38126 -> #24513 - dotnet/runtime#38539 - dotnet/sdk#12831
- appear to have fixes for all of the following: - #3835 -> dotnet/runtime#3229, dotnet/runtime#3315 - #8387 - #11813 - #12097 - #14022 - #24695 - dotnet/aspnetcore-internal#1363 -> #6393 -> #4763 - dotnet/corefx#36024 -> dotnet/runtime#28959 -> dotnet/runtime#29337 - dotnet/runtime#38126 -> #24513 - dotnet/runtime#38539 - dotnet/sdk#12831
- appear to have fixes for all of the following: - #3835 -> dotnet/runtime#3229, dotnet/runtime#3315 - #8387 - #11813 - #12097 - #14022 - #24695 - dotnet/aspnetcore-internal#1363 -> #6393 -> #4763 - dotnet/corefx#36024 -> dotnet/runtime#28959 -> dotnet/runtime#29337 - dotnet/runtime#38126 -> #24513 - dotnet/runtime#38539 - dotnet/sdk#12831
Currently, the serializer only supports primitives (
int32
,string
,float
etc.) as dictionary values.Support for non-primitive types should also be added:
Dictionary<string, MyConcreteClass>
Dictionary<string, List<T>>
List<Dictionary<string, T>
Dictionary<string, Dictionary<string, T>>
Dictionary<string, object>
cc @steveharter
The text was updated successfully, but these errors were encountered: