Properties of custom collections are not serialized with JSON serialization #22402
Labels
doc-enhancement
Improve the current content [org][type][category]
dotnet-fundamentals/svc
needs-more-info
Needs more info from OP. Auto-closed after 2 weeks if no response. [org][resolution]
Pri2
Using JSON serialization (
System.Text.Json
) of custom collections, it would help adding documentation that the state of collections in addition to the collection is not serialized (e.g. properties of the custom collection).The documentation at https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-supported-collection-types?pivots=dotnet-5-0 has this information:
Here, it would be helpful adding this information:
Maybe this information should be added here as well (or only here):
https://docs.microsoft.com/en-us/dotnet/standard/serialization/system-text-json-supported-collection-types?pivots=dotnet-5-0#custom-collections
This behavior is described here (along with a project showing this): dotnet/runtime#46920
Target framework
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: