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

Can the library benefit of JSON contract customization to simplify any logic? #129

Open
xperiandri opened this issue Aug 21, 2022 · 2 comments

Comments

@xperiandri
Copy link
Contributor

JSON contract customization

@Tarmil
Copy link
Owner

Tarmil commented Sep 25, 2022

Some features of FSharp.SystemTextJson could be implemented using this API, but as far as I can tell, it doesn't seem flexible enough for all features. For example, it looks like you can't change the JsonTypeInfo.Kind, which means it can't represent a .NET object as something else than a JSON object. That is needed by some of our union representations (such as InternalTag using an array, or UnwrapFieldlessTags using a string).

@xperiandri
Copy link
Contributor Author

Maybe it worse to open an issue in .NET repo about that?

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