I have a pre-existing structure of a class object in my web service that was developed by another team. I am now looking to post JSON data to the
CartObject (int CustomerID, List<CartListObject> CartList)
class.
The elements inside CartListObject
are as follows:
public int ItemID { set; get; }
public ItemObject Item { set; get; }
public int Quantity { set; get; }
The structure of the ItemObject is as follows:
public int ID { set; get; }
public string Name { set; get; }
public List<ItemImageObject> ItemGallery { set; get; }
The structure of the ItemImageObject is as follows:
public int ItemID { set; get; }
public string ImageName { set; get; }
I'm uncertain on how to format the JSON data for the CartObject
to be posted to the web service.
If you have any suggestions or ideas, they would be greatly appreciated.