BarRaider / streamdeck-tools

The Stream Deck Tools library wraps all the communication with the Stream Deck app, allowing you to focus on actually writing the Plugin's logic
https://barraider.com
MIT License
465 stars 70 forks source link

Conversion from NSJ to STJ #80

Closed Paladinleeds closed 5 months ago

Paladinleeds commented 5 months ago

Please look into converting from Newtonsoft.Json to System.Text.Json

System.Text.Json is a more strictly-typed Json implementation, however, where we need more flexible syntax, flags are available to support this. However, it will encourage developers to write strictly-typed Json (e.g. where we need a numerical value in the Json, code provided below)...

"SDKVersion": 2

Whereas this would be parsed as a string

"MinimumVersion": "6.5"

(except where override flags are set)

The situation is that Newtonsoft is basically EOL, and isn't receiving ongoing support. System.Text.Json is actively maintained.