Closed panesofglass closed 4 years ago
Should this replace the Newtonsoft.Json implementation, or should this be another option and another package? @baronfel @Tarmil, any thoughts?
I'd say go ahead and make the switch. Things are trending towards STJ, and the excellent library that @Tarmil provides covers enough of the gaps that I was concerned with.
Originally posted by @baronfel in https://github.com/panesofglass/FSharp.Data.JsonSchema/pull/5#issuecomment-638851419
This seems good - one less dependency in the chain as well as the perf gains.
With no more comments, I'll go ahead and merge. I can always resurrect this later, if there's a need.
As we are essentially overriding nearly everything in Newtonsoft.Json's default serialization settings for F# types, moving to System.Text.Json is mostly a re-implementation to use its converters. This depends on NJsonSchema support for System.Text.Json, which is currently a WIP.
Steps:
Notes: Migration Guide