-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
Questions about Custom Serialization #890
Comments
Not that I’m aware of. You’d need to have multiple builders to do different type converters like your asking about. |
@EdwardCooke Thank you for your answer,The functionality I want to implement cannot be handled with different types converters。 For example
Deserialize the string 500ms into the number 500, and deserialize the string 5s into the number 5000,I can't convert all strings to numbers |
I’ll work on adding this feature. |
You can now specify a custom type converter on the property using the Here's the tests that show how to do it. |
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
The text was updated successfully, but these errors were encountered: