title: How to output a json object of Request.CreateResponse method
body: <p>How to output a json object of Request.CreateResponse method?</p>
  
  <p>the below code output the json string </p>
  
  <pre><code>    "{RowCount:15}"
  </code></pre>
  
  <p>,the string is not a json ojbect,it should use eval() method of javscript to convert to json object ,I want the server side return the json object directly,
  It should return</p>
  
  <pre><code>{RowCount:15}
  </code></pre>
  
  <p>that's a json object.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>public class PagedDataAttribute : ActionFilterAttribute
  {
  
      public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
      {
          string jsonRowCount = "{RowCount:10}";
          actionExecutedContext.Response = actionExecutedContext.Request.CreateResponse(System.Net.HttpStatusCode.OK, jsonRowCount,System.Net.Http.Formatting.JsonMediaTypeFormatter.DefaultMediaType);
      }
  
  }
  </code></pre>