How to deserialize an array of values with a fixed schema to a strongly typed data class?

后端 未结 3 908
夕颜
夕颜 2020-11-22 16:58

I am having some trouble figuring out a clean (as possible) way to deserialize some JSON data in a particular format. I want to deserialize the data to strongly typed data

3条回答
  •  庸人自扰
    2020-11-22 17:22

    Try this

    Create a class like below

    Note : you can use Paste Special option in visual studio to generate all the classes related to the JSON

    Edit -> Paste Special -> Paste Json As Classes

    it will create all the classes related to the JSON

    Note : refer this I have already answer similar like this..

提交回复
热议问题