[{"totalDiscountAmount":10.0000,"promotions":
[{"promotionId":"15806","itemId":"271","discountAmount":10.0000,"discountPercentage":null,"promotionType":2,"promotionName":"惠百真大豆油_2件立减10","promotionDescription":"","combinationFlag":"0","promotionKind":"1","giftItems":null}]}]
以上是我接到的消息,promotions和giftItems是list。
然后用下面
JArray json = JArray.Parse(result);
result就是上面收到的消息
List<PromotionGroups> reips = (List<PromotionGroups>)JsonConvert.DeserializeObject(json["promotions"]["giftItems"].ToString(), typeof(List<PromotionGroups>));
然后报错,null
请教大神,在线等