Json.Net: JsonSerializer-Attribute for custom naming [duplicate]
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
also didnt work...
Is it possible to name the json-objetcs/arrays by myself?
I think I found the solution:
[JsonProperty(PropertyName = "Myname")]
will rename it.
精彩评论