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

JsonSerializationException

The exception thrown when an error occurs during Json serialization or deserialization.

Initializes a new instance of the JsonSerializationException class.

public JsonSerializationException(string message)

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

public JsonSerializationException(string message, Exception innerException)

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

Initializes a new instance of the JsonSerializationException class.