Serializing paid cart DTO variation 1 as JSON text. · GitHub
source link: https://gist.github.com/einarwh/afba5ff3e2ba244fc4de4499f2261704
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Instantly share code, notes, and snippets.
var paidCartDto1 = new PaidCart { paidItems = new Item[] { new Item { id = "1bcd", title = "gizmo" }, new Item { id = "3cdf", title = "widget", description = "A very useful item" } }, payment = new Money { mount = 123.5, currency = "USD" }, timestamp = "2020-04-11T10:11:33.514+02:00" };
var paidCartDto1JsonText = JsonConvert.SerializeObject(paidCartDto1);
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK