Newtonsoft.Json by James Newton-King

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

 JsonReaderException

The exception thrown when an error occurs while reading JSON text.
public int LineNumber { get; }

Gets the line number indicating where the error occurred.

public int LinePosition { get; }

Gets the line position indicating where the error occurred.

public string Path { get; }

Gets the path to the JSON where the error occurred.

Initializes a new instance of the JsonReaderException class.

public JsonReaderException(string message)

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

public JsonReaderException(string message, Exception innerException)

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

public JsonReaderException(string message, string path, int lineNumber, int linePosition, Exception innerException)

Initializes a new instance of the JsonReaderException 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.