Deserialize JSON into Object C#

前端 未结 5 1592
广开言路
广开言路 2020-11-28 14:06

Hello I am in desperate need of some help. I have a json file, with an array of json objects. I cannot figure out how to deserialize it into a list of this object.

5条回答
  •  失恋的感觉
    2020-11-28 14:24

    Newtonsoft provide a way to do it.

    CustomClass myClassWithCollection = JsonConvert.DeserializeObject(jsonString);
    

提交回复
热议问题