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

Newtonsoft.Json.JsonSerializationException

The exception thrown when an error occurs during JSON serialization or deserialization.
namespace Newtonsoft.Json { public class JsonSerializationException : JsonException { public int LineNumber { get; } public int LinePosition { get; } public string Path { get; } public JsonSerializationException(); public JsonSerializationException(string message); public JsonSerializationException(string message, Exception innerException); public JsonSerializationException(SerializationInfo info, StreamingContext context); public JsonSerializationException(string message, string path, int lineNumber, int linePosition, Exception innerException); } }