title: Newtonsoft JObject ToString with backslash property
body: <p>I have some data containing a backslash.  For example: <code>"domain\user"</code>, which when stored in my variable string is <code>"domain\\user"</code>.</p>
  
  <p>I create a <code>JObject</code> with a <code>JProperty</code> using this variable.</p>
  
  <pre><code>JObject root = new JObject();
  root.Add(new JProperty("authorizedAccounts", this.AuthorizedAccounts));
  </code></pre>
  
  <p>When I want to use the <code>JObject</code> to send it through http request, I use the <code>ToString</code> method of <code>JObject</code>.</p>
  
  <p>The problem is, my <code>"domain\\user"</code> become <code>"domain\\\\user"</code>. 
  What is the best way to create a Json string from a JObject without modifying backslash? Should I replace <code>\\</code> with <code>\</code> before or after?</p>
  
  <pre><code>string[] authorizedAccounts = new string[] { @"domain\user" };
  
  JObject root = new JObject();
  root.Add(new JProperty("authorizedAccounts", authorizedAccounts));
  string toSend = root.ToString();
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NXW1K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NXW1K.png" alt="enter image description here"></a></p>