title: Returning unescaped Json in MVC with Json.Net
body: <p>How does one return unescaped Json, using Json.Net in an MVC project?</p>
  
  <p>So far, I serialize a basic object, and get Json.Net to serialize it:</p>
  
  <pre><code>public JsonResult GetTimelineJson()
  {
      var result = new MyGraph([some data...]);
  
      return Json(JsonConvert.SerializeObject(result), JsonRequestBehavior.AllowGet);
  }
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>"{\r\n  \"id\": \"myGraph\",\r\n  \"title\": \"Graph title\",\r\n [...]
  </code></pre>
  
  <p>Any attempts to wrap it an an HtmlString, etc, result in an empty set being passed across the wire (though the debug point shows it correctly un-escaped). I've checked that the content-type is set correctly in the HTTP headers.</p>