-1
我想从我的C#控制器中的Json数组中检索值。这是我的json数组:C#从Json数组中检索值
{
name : "Name 1",
description : "Description 1",
count : 6
}
我如何检索我的c#控制器中的每个属性?我知道如何处理对象,但是这个json不是来自对象。
public IList[] getList(IList[] myList)
{
// How to get the value of the name and the description here ?
}
要多少代码做一个简单的任务!我将最终创建一个具有所有我需要的属性的类,然后以这种方式检索它们:myList.name,myList.description等 – user708683