Hangfire
Hangfire copied to clipboard
Remove Newtonsoft and integrate Microsofts System.Text.Json library
Hi all, first of all thank you very much for your great work! Highly appreciated!
Is there any option to remove Newtonsoft.Json and integrate the implementation from Microsoft in System.Text.Json? We are removing the old serializer where ever possible and strictly use the new implementation, less dependencies and industry code scanners like FoD are more relaxed...
Thanks in advance for your effort and kind regards Michael
Perhaps there is another way of reformulating this request: redesign the next version of Hangfire to refactor the serialization (what is now SerializationHelper into a pluggable component. which can be implemented using whatever serialization mechanism you like.
Because today, it's System.Text.Json
, but what will it be tomorrow?
Of course, there is more to it than that: Hangfire contains references to Newtonsoft-specific attributes in various other places.
- Some of those can be renamed to .NET attributes that are also recognized by Newtonsoft. For example
NonSerialized
instead ofJsonIgnore
,DataMember
instead ofJsonProperty
. - Other places will need some serious thinking.... that's why the version will most likely be bumped to 2 :-).
Oh if I only had the time...
Because today, it's
System.Text.Json
, but what will it be tomorrow?
But Newtonsoft is a live project, I think it will be going on for a long time still.
Sounds like a good 2.0 goal!
Relates/Dupes to https://github.com/HangfireIO/Hangfire/issues/2202 https://github.com/HangfireIO/Hangfire/issues/2033
+1
is a requested feature in the roadmap?
+1