阅读背景:

使用JSON.NET序列化对象的动态属性名

来源:互联网 

I'm using JSON.NET for serialization of my objects for connecting to a REST API. One of the properties in my object that needs to be serialized to JSON has a dynamic property name. If the value contained in the struct for this property is a numeric value, then the JSON property is "type_id", however if this value is a string value, then the JSON property name is "type_code". I attempted to use a custom I'm using JSON.NET for serialization of my obje




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: