A paid shopping cart serialized using Newtonsoft's JSON data model. · GitHub
source link: https://gist.github.com/einarwh/0eaeaed367ace428fe6a7459f20956f6
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 paidCartObject = new JObject( new JProperty("_state", new JValue("paid")), new JProperty("paidItems", new JArray( new JObject( new JProperty("id", new JValue("1bcd")), new JProperty("title", new JValue("gizmo"))), new JObject( new JProperty("id", new JValue("3cdf")), new JProperty("title", new JValue("widget")), new JProperty("description", new JValue("A very useful item"))))), new JProperty("payment", new JObject( new JProperty("amount", new JValue(123.5)), new JProperty("currency", new JValue("USD")))), new JProperty("timestamp", new JValue("2020-04-11T10:11:33.514+02:00")));
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK