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

JsonWriterException

The exception thrown when an error occurs while writing JSON text.
public string Path { get; }

Gets the path to the JSON where the error occurred.

Initializes a new instance of the JsonWriterException class.

public JsonWriterException(string message)

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

public JsonWriterException(string message, Exception innerException)

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

public JsonWriterException(string message, string path, Exception innerException)

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