I use the JsonSerializer
from Newtonsoft.
But i want to name the json-objects by myself.
I tried the JsonObject
attribute
[JsonObject(Description = "MyName", Title = "orThisname")]
JsonArray
也不管用了.
可以自己命名json-objetcs/array吗?
I use the JsonSerializer
from Newtonsoft.
But i want to name the json-objects by myself.
I tried the JsonObject
attribute
[JsonObject(Description = "MyName", Title = "orThisname")]
JsonArray
也不管用了.
可以自己命名json-objetcs/array吗?
我想我找到了解决办法:
[JsonProperty(PropertyName = "Myname")]
will rename it.