You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can the library benefit of JSON contract customization to simplify any logic? #129
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).
Activity
Tarmil commentedon 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 asInternalTagusing an array, orUnwrapFieldlessTagsusing a string).xperiandri commentedon Sep 27, 2022
Maybe it worse to open an issue in .NET repo about that?