string json = "{ \"Id\": 2, \"Name\": \"Tablet\", \"Price\": 499.99 }"; var product = JsonConvert.DeserializeObject<Product>(json); Console.WriteLine($"Product ID: {product.Id}, Name: {product.Name}");