I used the NuGet manager and installed the latest version of Newtonsoft.Json. This fixed the issue for me.