title: Remove new lines in JSON string using Newtonsoft JSON.NET
body: <p>I am using Newtonsoft JSON.NET to create a dynamic JSON object which looks fine, but is unrecognizable when I send it to a REST API. My best guess is there are new lines in the JSON string which is breaking the process the API uses to parse the data. Is there a way to ensure all new lines are removed from the JSON data I am sending?</p>
  
  <pre><code>        dynamic MyPerson = new JObject();
          MyPerson.username = "CodeMonkey";
          MyPerson.first_name = "Monkey";
          MyPerson.last_name = "banana";
          MyPerson.email_address = "bananacrazy@monkey.com";
          MyPerson.is_active = true;
  
  
          string PersonData = JsonConvert.SerializeObject(MyPerson);
  </code></pre>
  
  <p>The JSON it is returning if I use Response.Write is:</p>
  
  <pre><code>{"username":"CodeMonkey","first_name":"Monkey","last_name":"Banana","email_address":"monkey@bananacrazy.com","is_active":true}
  </code></pre>