JSON Object to C# Object

using Newtonsoft.Json;

Product data = JsonConvert.DeserializeObject<Product>(product01);
    public class Product
    {
        public long ProductId { get; set; }
        public int Quantity { get; set; }
        public decimal Total { get; set; }
    }
Last modified: April 5, 2021

Author

Comments

Write a Reply or Comment