-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Remove Newtonsoft.Json test-only dependency #16639
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
[dotnet] Remove Newtonsoft.Json test-only dependency #16639
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
nvborisenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, one less tech debt.
User description
Dependency is unnecessary; now the tests can align with the product code in JSON serialization.
🔗 Related Issues
💥 What does this PR do?
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Replace Newtonsoft.Json with System.Text.Json for test serialization
Remove Newtonsoft.Json dependency from test projects
Implement JsonSerializerContext for source-generated JSON serialization
Update JSON attributes to use System.Text.Json equivalents
Diagram Walkthrough
File Walkthrough
11 files
Replace Newtonsoft.Json with System.Text.Json attributesUpdate JSON deserialization to use JsonSerializerRemove Newtonsoft.Json attributes from classReplace Newtonsoft.Json with System.Text.Json attributesReplace JsonConvert with JsonObject serializationRemove Newtonsoft.Json attributes from classRemove Newtonsoft.Json from NuGet dependenciesRemove Newtonsoft.Json package dependencyRemove Newtonsoft.Json from build dependenciesRemove Newtonsoft.Json package referenceRemove Newtonsoft.Json from template dependencies1 files
Add new source-generated JSON serializer context