title: Why json response includes backward slashes in web api response
body: <p>Hi i have a web api with get method and returns custum json format:</p>
  
  <p>Problem: Why json value contains "/ characters</p>
  
  <p>Returns:</p>
  
  <pre><code>{
    "success": true,
    "message": "",
    "code": 200,
    "data": "\"{\"token\":\"E013D7050A8C4447989651D29AD3E637\"}\""
  }
  </code></pre>
  
  <p>My return code: </p>
  
  <pre><code>return new HttpResponseBody(true, message, (int)System.Net.HttpStatusCode.OK, data != null ? Newtonsoft.Json.JsonConvert.SerializeObject(data) : data);
  </code></pre>
  
  <p>My reponse class;:</p>
  
  <pre><code> public class HttpResponseBody
  {
      public bool success;
      public string message;
      public int code;
      public object data;
  
      public HttpResponseBody(bool success, string message, int code, object data)
      {
          this.success = success;
          this.message = message;
          this.code = code;
          this.data = data;
      }
  
      public static HttpResponseBody Success(object data = null, string message = "")
      {
          return new HttpResponseBody(true, message, (int)System.Net.HttpStatusCode.OK, data != null ? Newtonsoft.Json.JsonConvert.SerializeObject(data) : data);
      }
  
      public static HttpResponseBody Error(System.Net.HttpStatusCode code, string message)
      {
          return new HttpResponseBody(false, message, (int)code, null);
      }
  }
  </code></pre>