title: Handling newlines in data with Json.Net
body: <p>Is there any way to handle newlines in JSON.NET.  I have some data coming back with Carriage Return Line Feed in it and Json.Net is just leaving it raw in the return value.  Is there a way to force Json.Net to encode this for Json.  I assumed this would happen by default but it is not happening for me. Maybe I am missing something else. </p>
  
  <p>I am using Json.Net in a MVC4 WebApi project if that matters.</p>
  
  <p>My data is coming back with \r\n in the string such as</p>
  
  <pre><code>  "Keywords": "These are my keywords.\r\n\r\n\r\nThis is a second line...\r\n\r\nThis is a third line. ...\r\n\r\n\r\nThis is a 4th line ..."
  </code></pre>
  
  <p>From what I understand, that should be 
  <code>\\r\\n</code>.  It could be a problem with the data I am returning, but I just wanted to see what JSON.NET should be doing with this. </p>