如何在 HTTP 请求正文中包含语音标记(双引号)

Joe*_* BW 5 c# rest post httprequest

我正在尝试创建一些使用 TSheets REST API 的代码。该文档指出,这是我应该用来创建时间表的格式。

var client = new RestClient("https://rest.tsheets.com/api/v1/timesheets");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <TOKEN>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "<REQUEST BODY>", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Run Code Online (Sandbox Code Playgroud)

这就是请求正文中应该包含的内容

{
 "data":
  [
    {
     "user_id":1242515,
     "type":"regular",
     "start":"2018-07-23T10:00:00-07:00",
     "end":"2018-07-23T13:10:23-07:00",
     "jobcode_id":"17288283",
     "notes":"This is a test of the emergency broadcast system",
     "customfields": {
      "19142":"Item 1",
      "19144":"Item 2"
     },
     "attached_files": [
      50692,
      44878       
     ],
    },
  ]
}
Run Code Online (Sandbox Code Playgroud)

我的问题是如何将语音标记(双引号)放入请求正文部分?是否需要将转义字符与语音标记放在一起

pee*_*eee 2

用于\"表示",一个有用的工具:https ://www.freeformatter.com/json-escape.html