Skip to content
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

Allow to add converters to the standard JSON serializer #4905

Closed
hikalkan opened this issue Jul 28, 2020 · 0 comments
Closed

Allow to add converters to the standard JSON serializer #4905

hikalkan opened this issue Jul 28, 2020 · 0 comments
Assignees
Milestone

Comments

@hikalkan
Copy link
Member

hikalkan commented Jul 28, 2020

Example usage:

Configure<AbpNewtonsoftJsonSerializerOptions>(options =>
{
    options.Converters.Add<MyJsonConverter>();
});

MyJsonConverter should be registered to DI since it will be injected.

These converters will be used when you inject IJsonSerializer service. Currently, there is only one default converter: AbpJsonIsoDateTimeConverter.

@hikalkan hikalkan added this to the 3.1 milestone Jul 28, 2020
@hikalkan hikalkan self-assigned this Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant