-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Equivalent of DefaultContractResolver.CreateProperties override in System.Text.Json #60518
Comments
Tagging subscribers to this area: @dotnet/area-system-text-json Issue DetailsI used ContractResolver.CreateProperties override option to mark using reflection all properties including private ones to be serialized and deserialized using the following code:
Is it possible to do something similar in System.Text.Json without using any attributes in the objects type definitions (without JsonIncludeAttribute)?
|
You're correct to point out that this falls under the #36785 umbrella. I'll add it to that list for future consideration. |
We also need this feature with NHibernate Proxy object serializations. |
Closing in favor of #63686. |
I used ContractResolver.CreateProperties override option to mark using reflection all properties including private ones to be serialized and deserialized using the following code:
Is it possible to do something similar in System.Text.Json without using any attributes in the objects type definitions (without JsonIncludeAttribute)?
The text was updated successfully, but these errors were encountered: