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
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the bug
When you use JsonPropertyAttribute to ignore some properties, properties of inner objects with the same name are ignored too.
To Reproduce
Create the next set of classes:
Create a new instance of User:
Serialize the created
user
object usingJson.Serialize
:You will get the next Json string:
The Id property not only was ignored from the User object but also from the inner Address object.
The text was updated successfully, but these errors were encountered: