<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.
public JsonException()

Initializes a new instance of the JsonException class.

public JsonException(string message)

Initializes a new instance of the JsonException class with a specified error message.

public JsonException(string message, Exception innerException)

Initializes a new instance of the JsonException class with a specified error message and a reference to the inner exception that is the cause of this exception.