<PackageReference Include="Newtonsoft.Json" Version="6.0.7" />

JsonException

public class JsonException : Exception
The exception thrown when an error occurs during Json serialization or deserialization.
using System; namespace Newtonsoft.Json { public class JsonException : Exception { public JsonException() { } public JsonException(string message) : base(message) { } public JsonException(string message, Exception innerException) : base(message, innerException) { } internal static JsonException Create(IJsonLineInfo lineInfo, string path, string message) { message = JsonPosition.FormatMessage(lineInfo, path, message); return new JsonException(message); } } }