我想通过 JSON 传递文件路径。在反序列化时,我收到错误:
无法识别的转义序列。(43): {“Jobtype”: “StepBatch”,“SelectedId”: “D:\Input\file1.CATPart“}
我已经转义了字符,但它仍然显示错误...我在这里错过了什么吗?
string json = "{\"Jobtype\": \"StepBatch\",\"SelectedId\": \"D:\\Input\\file1.CATPart\"}";
var jsonObj = new JavaScriptSerializer().Deserialize<List<Arguments>>(json);
米脂
相关分类