Skip to content

Add non-primitive value support for dictionaries in JsonSerializer #29337

@layomia

Description

@layomia

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>>
  • Polymorphic support (serialize only): Dictionary<string, object>

cc @steveharter

Metadata

Metadata

Assignees

Labels

area-System.Text.JsonblockingMarks issues that we want to fast track in order to unblock other important work

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions