using System.Collections.Generic;
public static void Main()
var jsonObject = new Newtonsoft.Json.Linq.JObject();
var jArr = new Newtonsoft.Json.Linq.JArray();
for (int index = 0; index < 2; index++)
var orderLine = new Newtonsoft.Json.Linq.JObject()
{ "lineNumber", index+1 },
{ "intentToCancelOverride", false },
{ "sellerOrderId", DateTime.Now.Ticks.ToString() },
{ "orderLineStatuses", new Newtonsoft.Json.Linq.JObject
{ "trackingInfo", new Newtonsoft.Json.Linq.JObject
{ "shipDateTime", 1580821866000 },
{ "carrierName", new Newtonsoft.Json.Linq.JObject
{ "methodCode", "Standard"},
{ "trackingNumber", "22344"}
jsonObject["orderLine"] = jArr;
string json = JsonConvert.SerializeObject(jsonObject);