try
{
    string invalidJson = "{ \"Id\": 1, \"Name\": \"Laptop\", \"Price\": \"InvalidPrice\" }";
    var product = JsonConvert.DeserializeObject<Product>(invalidJson);
}
catch (JsonException ex)
{
    Console.WriteLine($"Error parsing JSON: {ex.Message}");
}