JSON转换为C#中的列表

时间:2018-12-04 06:13:36

标签: json list

我有一个像下面这样的json字符串

{"Page Load":{"Entity":[{"NamesList":[{"Id":1,"Name":"Food"},{"Id":2,"Name":"Power"},{"Id":3,"Name":"air"},
{"Id":4,"Name":"water"},{"Id":5,"Name":"nature"},{"Id":6,"Name":"another"}],
"Transaction information":{"success":true,"return val":"","return datatype":"","error":""},
"Metadata":{"Type":"Abstract"}}],"next records":false},"Processing Time":14}

我想将NamesList(从json返回)的值获取到我的Root类。

Myclass

1 个答案:

答案 0 :(得分:0)

尝试一下:

_.over

T 是您的根类。