Skip to content

Support OnXXX methods/attributes for System.Text.Json #39896

@StevenRasmussen

Description

@StevenRasmussen

I saw issue #29177 which is currently closed. However, it talks about both converts and the OnXXX methods but only converters has been implemented. I was really hoping this was on the roadmap for completion in the .Net 5 timeframe but don't see a separate ticket for this so I apologize if there is another ticket already open for this.

Writing a custom converter for every type for which you want to be able to provide OnXXX methods is quite a pain. Being able to create a base class with these methods and then being able to override them in inheriting classes has been my pattern which works quite well with Newtonsoft.Json.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions