public class MyClass { [JsonProperty("name")] public string Name { get; set; } }
[JsonObject("myObject")] public class MyClass { public string Name { get; set; } }In this example, the `JsonObject` attribute is used to specify that the class `MyClass` should be deserialized from a JSON object with the name "myObject". Package library: Newtonsoft.Json.