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

JsonWriterException

The exception thrown when an error occurs while reading Json text.
using System; namespace Newtonsoft.Json { public class JsonWriterException : JsonException { public string Path { get; set; } public JsonWriterException() { } public JsonWriterException(string message) : base(message) { } public JsonWriterException(string message, Exception innerException) : base(message, innerException) { } internal JsonWriterException(string message, Exception innerException, string path) : base(message, innerException) { Path = path; } internal static JsonWriterException Create(JsonWriter writer, string message, Exception ex) { return Create(writer.ContainerPath, message, ex); } internal static JsonWriterException Create(string path, string message, Exception ex) { message = JsonPosition.FormatMessage(null, path, message); return new JsonWriterException(message, ex, path); } } }