The code includes references and attributes for both the current System.Text.Json and also the older (deprecate) Newtonsoft.Json.
It appears that the standard System.Text.Json is the library used to actually convert to/from JSON.
The references to Newtonsoft can be removed.