Skip to content

Conversation

@exyi
Copy link
Member

@exyi exyi commented Dec 29, 2025

System.Text.Json prefers converters defined in the Converters list, and only then uses the JsonConverter attribute.
This is different from Newtonsoft, and does not work well with our "catch all" converters which should be treated more like builtins (with lowest priority).

The patchs add a converter which swaps the priority

System.Text.Json prefers converters defined in the Converters list,
and only then uses the JsonConverter attribute.
This is different from Newtonsoft, and does not work well with our
"catch all" converters which should be treated more like builtins
(with lowest priority).

The patchs add a converter which swaps the priority

This comment was marked as resolved.

@exyi exyi merged commit c2f2b5c into main Dec 29, 2025
14 checks passed
@exyi exyi deleted the fix-enum-custom-json-converter branch December 29, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants