<PackageReference Include="System.Text.Json" Version="11.0.0-rc.2.26504.105" />

System.Text.Json.JsonException

public class JsonException : Exception
Defines a custom exception object that is thrown when invalid JSON text is encountered, the defined maximum depth is passed, or the JSON text is not compatible with the type of a property on an object.
namespace System.Text.Json { public class JsonException : Exception { public long? LineNumber { get; } public long? BytePositionInLine { get; } public string Path { get; } public JsonException(string message, string path, long? lineNumber, long? bytePositionInLine, Exception innerException); public JsonException(string message, string path, long? lineNumber, long? bytePositionInLine); public JsonException(string message, Exception innerException); public JsonException(string message); public JsonException(); protected JsonException(SerializationInfo info, StreamingContext context); } }