解決方法:
 [HttpGet]    public HttpResponseMessage getsystemtime()    {      cltime time = new cltime();      time.datetime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");      string relsut = JsonConvert.SerializeObject(time);      var resp = new HttpResponseMessage { Content = new StringContent(relsut, System.Text.Encoding.UTF8, "application/json") };      return resp;    }以上這篇快速解決owin返回json字符串多帶了雙引號"多了重string轉(zhuǎn)義字符串就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持VEVB武林網(wǎng)。
新聞熱點
疑難解答