✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
try
{
JsonSerializer.Deserialize<Point>("""{"x":1,"y":"oops"}""");
}
catch (JsonException ex)
{
System.Console.WriteLine(ex.Path);
}
record Point(int x, int y);