C#能解析嵌套json串吗?
[{"id":46,"tables":"nutritionfacts","tag":"true","value":{"id":2,"classify":"水分","remark":"a","nfcid":1,"nutritionName":"水分","space":0,"sortTypeId":0},"maxNum":4,"type":"update","versionNum":0}]
这个json怎么解析啊
[解决办法]
json.net
[解决办法]
public class TypeA
{
public int id;
public string tables;
public string tag;
public TypeB value;
public int maxNumber;
public string type;
public int versionNum;
}
public class TypeB
{
public int id;
public string classfy;
public string remark;
public int nfcid;
public string nutritionName;
public int space;
public long sortTypeId;
}