JsonSerializationException
The exception thrown when an error occurs during JSON serialization or deserialization.
Gets the line number indicating where the error occurred.
Gets the line position indicating where the error occurred.
Gets the path to the JSON where the error occurred.
public JsonSerializationException()
Initializes a new instance of the JsonSerializationException class.
Initializes a new instance of the JsonSerializationException class
with a specified error message.
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.
public JsonSerializationException(string message, string path, int lineNumber, int linePosition, Exception innerException)
Initializes a new instance of the JsonSerializationException class
with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception.