-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test JSON serialization of EF object graphs
Fixes #20548 Added tests that serialize graphs with both the BCL Json support and Newtonsoft.Json. Findings: * BCL Json * Preserving references working fine; needed to increase max-depth for heavily nested graph, but exception message was clear * Lack of an Ignore option may be missed because output is harder to understand when it contains many internal references. Will follow up on this. * Newtonsoft.JSON * Found it easy to get out-of-memory errors even when ignoring cycles * Got stack overflow errors when attempting to serialize cycles instead of ignoring them * I'm probably not configuring things correctly here, but this isn't high priority * Net Topology Suite types are not JSON-serialization-friendly; will follow up on this
- Loading branch information
1 parent
183880f
commit 01f2dc2
Showing
4 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters