Removed Newtonsoft.Json in favor of System.Text.Json#725
Merged
xperiandri merged 1 commit intomasterfrom Jul 6, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR removes the dependency on Newtonsoft.Json across the solution and migrates to System.Text.Json.
- Removes Newtonsoft.Json package references from project files.
- Updates JSON deserialization in the configuration module to use System.Text.Json.
- Updates Directory.Packages.props and CHANGELOG to reflect the changes.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/FSharpLint.Core/FSharpLint.Core.fsproj | Removed Newtonsoft.Json package reference |
| src/FSharpLint.Core/Application/Configuration.fs | Replaced Newtonsoft.Json usage with System.Text.Json and updated JSON configuration |
| src/FSharpLint.Console/FSharpLint.Console.fsproj | Removed Newtonsoft.Json package reference |
| Directory.Packages.props | Replaced Newtonsoft.Json package reference with System.Text.Json package |
| CHANGELOG.md | Updated changelog to document the removal of Newtonsoft.Json |
Comments suppressed due to low confidence (1)
src/FSharpLint.Core/Application/Configuration.fs:562
- Switching to System.Text.Json is a good move; however, ensure that any F# option types used in Configuration are properly handled, as System.Text.Json does not natively support F# option serialization.
JsonSerializer.Deserialize<Configuration>(configText, FSharpJsonConverter.jsonOptions)
2f630cf to
fe7b48a
Compare
fe7b48a to
75c9a5e
Compare
xperiandri
added a commit
that referenced
this pull request
Jul 11, 2025
## [0.25.0] - 2025-07-11 - Migrate from `Paket` to `Directory.Packages.props` #722 [@xperiandri] - Migrate to .NET `9.0.201` and FCS `43.9.201` #722 [@xperiandri] - Write test logs to test context output #722 [@xperiandri] - Use string interpolation instead of `+` concatenation #724 [@xperiandri] - Run tests in parallel #728 [@xperiandri] - Remove `NoPartialFunctions` compiler workaround (#698) [@webwarrior-ws] - Add `SLNX` and `SLNF` format support and migrate to SLNX solution #723 [@xperiandri] Remove `Ionide.ProjInfo.Sln` NuGet package dependency - Remove `Newtonsoft.Json` NuGet dependency #725 [@xperiandri] - Add missing rule checks for FL0079-FL0081 #713 [@BennieCopeland] - Modify `.gitignore` to the Visual Studio standard one #735 [@xperiandri] - Add basic Copilot instructions and GitHub MCP #726 [@xperiandri] - Migrate `Fornax` to `0.16.0-beta002` and `FSharp.Formatting` to `20.0.1` #736 [@xperiandri, @Numpsy] - Update the build instructions to use `dotnet fsi` instead of `fake-cli` #734 [@Numpsy]
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.