-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove implicit fallback to reflection-based serialization (#71746)
* Remove implicit fallback to reflection-based serialization. Fix #71714 Include JsonSerializerContext in JsonSerializerOptions copy constructor. Fix #71716 Move reflection-based converter resolution out of JsonSerializerOptions. Fix #68878 * Address feedback & add one more test * Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerContext.cs Co-authored-by: Stephen Toub <stoub@microsoft.com> * fix build * Bring back throwing behavior in JsonSerializerContext and add tests * Only create caching contexts if a resolver is populated * Add null test for JsonSerializerContext interface implementation. * skip RemoteExecutor test in netfx targets * Add DefaultJsonTypeInfoResolver test for types with JsonConverterAttribute * remove nullability annotation * Update src/libraries/System.Text.Json/src/System/Text/Json/Serialization/JsonSerializerOptions.Converters.cs Co-authored-by: Krzysztof Wicher <mordotymoja@gmail.com> Co-authored-by: Stephen Toub <stoub@microsoft.com> Co-authored-by: Krzysztof Wicher <mordotymoja@gmail.com>
- Loading branch information
1 parent
527f1d1
commit 8e0a132
Showing
27 changed files
with
400 additions
and
340 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
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
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
Oops, something went wrong.