This sample creates Argon.JObject
and Argon.JArray
instances one at a time programatically.
var array = new JArray
{
"Manual text",
new DateTime(2000, 5, 23)
};
var o = new JObject
{
["MyArray"] = array
};
var json = o.ToString();
// {
// "MyArray": [
// "Manual text",
// "2000-05-23T00:00:00"
// ]
// }