Deserializing JSON using JSon.NET with dynamic data

前端 未结 6 1498
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 11:18

I\'m trying to deserialize some JSON data into objects for an application. Up until now it\'s been fine because the properties on the JSON data was static (key with a value)

6条回答
  •  萌比男神i
    2020-11-28 11:55

    Maybe you could just use one reserved attribute to contain the object type, and then use the base type as shown in this article: Dynamic types with JSON.NET

提交回复
热议问题