首页 > 代码库 > 解析 Json 相关
解析 Json 相关
statusJson sj = new statusJson()
{
ShipmentNum = "555555",
Status1 = "05",
Warehouse = "SHANGHAI",
Company = "AAA"
};
List<statusJson> sjlist = new List<statusJson>()
{
new statusJson()
{
ShipmentNum = "555557",
Status1 = "200",
Warehouse = "SHANGHAI",
Company = "AAA"
},
new statusJson()
{
ShipmentNum = "555558",
Status1 = "200",
Warehouse = "SHANGHAI",
Company = "AAA"
}
};
string getJson = SerializationHelper.ObjecttoJson(sjlist);
public string UpdateStatus(string getJson)
{
List<statusJson> strstatus = JavaScriptHelper.JSONtoObject<List<statusJson>>(getJson);
try
{
foreach (statusJson st in strstatus)
{
string oldstatus = "";
string newstatus = st.Status1;
string restatus = reStatus(newstatus);
string Shipment_ID = st.ShipmentNum;
}
}
}
解析 Json 相关
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。