csharp-sdk icon indicating copy to clipboard operation
csharp-sdk copied to clipboard

[ENHANCEMENT] Consider moving from Newtonsoft to System.Text.Json

Open nuttytree opened this issue 1 year ago • 4 comments

Description

In general it seems most major libraries are moving way from Newtonsoft to System.Text.Json. It would be good to see this library do the same.

Benefits

System.Text.Json seems to be the future of JSON parsing in .NET and is faster than Newtonsoft.

Detail

No response

Examples

No response

Risks/Downsides

No response

nuttytree avatar Oct 02 '24 16:10 nuttytree

I did a little digging into this. For .NET 3.5/4.0 and .NET Standard 1.6 using System.Text.Json is not an option. However with a bit of conditional code it would be pretty easy and straightforward to switch .NET Standard 2.0 to System.Text.Json. Would you be open to me putting up a PR to make the change?

nuttytree avatar Oct 08 '24 14:10 nuttytree

Holy smokes. This Issue didn't ping my radar. @nuttytree I'm genuinely sorry about that.

Did you find your solution yet? We're always open to a PR which helps us understand your problem and solution space effectively.

Note: We have on our roadmap to review and potentially deprecate end of life versions and move towards Core.

mikechu-optimizely avatar Jan 06 '25 14:01 mikechu-optimizely

Not a big deal, we are trying to move away from Newtonsoft in general and this NuGet is one of the big sources of it getting pulled in for us. I will try and get a PR up in the next month or so, I just didn't want to do the work if it wouldn't get accepted.

nuttytree avatar Jan 06 '25 14:01 nuttytree

Totally understand. Modernization is on our horizon too.

I've created internal work item FSSDK-11026 to track this Issue/PR.

Thanks much for the collab.

mikechu-optimizely avatar Jan 06 '25 14:01 mikechu-optimizely