Main issue:More extensible object and collection converters
One common aspect is being able to change serialization options on a per-type basis, but without per-type converters or custom attributes. This would be implemented as a virtual method that can be overridden to expose or create the "metadata" classes including JsonClassInfo
and JsonPropertyInfo
.
This could be achieved by making JsonSerializerOptions non-sealed and adding virtual methods like:
protected JsonClassInfo GetJsonClassInfo(Type type);
However, with the planned work on code-gen and the JsonContext
class similar behavior is already there in the form of: