This project has moved. For the latest updates, please go here.

Create a dictionary in json linq

Jul 21, 2010 at 8:01 AM
I can create the object below and then add it to an array. How would I create a dictionary instead in json linq? Thanks Nabil var group = new JObject(                         new JProperty("Key", new JValue(row["Key"])),                         new JProperty("item", new JValue(row["item"]))                         );
Jul 22, 2010 at 2:21 AM

JObject is a dictionary: IDictionary<string, JToken>