JObject jsonData = new JObject(); jsonData.Add("1", "1"); jsonData.Add("2", "1"); using (IEnumerator<KeyValuePair<string, JToken>> enumerator = jsonData.GetEnumerator()) { if (enumerator.MoveNext()) { KeyValuePair<string, JToken> item = enumerator.Current; var Key = item.Key.ToString(); var Value = item.Value.ToString(); Console.WriteLine("key:"+Key+" value:"+Value); } }