📜  c# json foreach 键值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.828000             🧑  作者: Mango

代码示例1
var dict = JObject.Parse(@"{""1"":""Name 1"",""2"":""Name 2""}");

var dict = JsonConvert.DeserializeObject>(json);
foreach(var kv in dict)
{
    Console.WriteLine(kv.Key + ":" + kv.Value);
}