construct json C# code example
Example: c# create a json object
dynamic ret = new JObject();
ret = new JObject(new JProperty("vendorDetails", new JObject()));
ret.vendorDetails.Add(new JProperty("vendorName", "Vendor Name"));
dynamic ret = new JObject();
ret = new JObject(new JProperty("vendorDetails", new JObject()));
ret.vendorDetails.Add(new JProperty("vendorName", "Vendor Name"));