using System.Collections.Generic;
public string action { get; set; }
public string name { get; set; }
public string content { get; set; }
public Header header { get; set; } = new Header();
public Body body { get; set; } = new Body();
public static void Main()
obj.header.action = "UPDATE";
obj.body.name = "Hobbit";
obj.body.content = "asdfasdfsd";
string str = JsonConvert.SerializeObject(obj);
var request = JsonConvert.DeserializeObject<Request>(str);
Console.WriteLine(request.header.action);