Skip to content

Questions about Custom Serialization #890

@cd-zhang2020

Description

@cd-zhang2020

Hello,Is it possible to add attributes to specified fields to implement a custom serialization and deserialization method?

For example Newtonsoft.Json

[JsonConverter(typeof(CustomConverter))]

var serializer = new SerializerBuilder() .WithTypeConverter(new CustomConverter()) .Build();

I use the above code to customize the serialization, but this is a global method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions