SecureStore icon indicating copy to clipboard operation
SecureStore copied to clipboard

Any plans to use System.Text.Json?

Open davidpierson opened this issue 7 months ago • 2 comments

Hi, Any plans to change to using System.Text.Json instead of Newtonsoft?

davidpierson avatar May 18 '25 22:05 davidpierson

Hello,

Newtonsoft is a holdover from when we supported (de)serialization of arbitrary types to the store, which was removed very early on. I'm open to switching to STJ but I'd have to check to ensure that it supports all the targets we currently care to support.

Is there a specific reason for this request besides streamlining dependencies? Is there something using STJ instead of Newtonsoft would enable on your end (as I currently consider the particular serializer to be an implementation detail)?

mqudsi avatar May 23 '25 18:05 mqudsi

Hi, Oh no need to apologise for Newtonsoft, it was pretty much the only game in town. Yes the dependencies are the reason. For all our new projects were are using STJ, so if SS is using it, that makes it so much easier to get it included. I might have a look at swapping over within SS, that would give me insight into the material differences.

davidpierson avatar May 25 '25 21:05 davidpierson