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

In what situation would StringToIntCustomConverter to required? #592

Open
ryno1234 opened this issue Mar 25, 2024 · 1 comment
Open

In what situation would StringToIntCustomConverter to required? #592

ryno1234 opened this issue Mar 25, 2024 · 1 comment

Comments

@ryno1234
Copy link

ryno1234 commented Mar 25, 2024

This is more of a question: reviewing the code, I'm not understanding in what situation the default converter wouldn't work. Why do we need a StringToIntCustomConverter? In what situation would the detected deserialization type be an int? but the value of the JSON is a string (as this class implies)?

@imperugo
Copy link
Owner

imperugo commented Nov 1, 2024

Hi @ryno1234
It is something I have carried with me over time to do the same as Newtonsoft, which has this functionality out of the box.

Personally, it's something I don't use, but it had emerged somewhere in the past (I don't know if here or on some email I had been sent) to have compatibility

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

No branches or pull requests

2 participants