Cannot deserialize the current JSON array (e.g. [1,2,3]) into type

后端 未结 3 936
长情又很酷
长情又很酷 2020-11-30 08:39

I have a class like this;

public  class MyStok
{
    public int STId { get; set; }
    public int SM { get; set; }
    public string CA { get; set; }
    pub         


        
3条回答
  •  鱼传尺愫
    2020-11-30 08:49

    For array type Please try this one.

     List myDeserializedObjList = (List)Newtonsoft.Json.JsonConvert.DeserializeObject(sc), typeof(List));
    

    Please See here for details to deserialise Json

提交回复
热议问题