title: escaping string for json result in asp.net server side operation
body: <p>I have a server side operation manually generating some json response. Within the json is a property that contains a string value.</p>
  
  <p>What is the easiest way to escape the string value contained within this json result?</p>
  
  <p>So this</p>
  
  <pre><code>string result = "{ \"propName\" : '" + (" *** \\\"Hello World!\\\" ***") + "' }";
  </code></pre>
  
  <p>would turn into</p>
  
  <pre><code>string result = "{ \"propName\" : '" + SomeJsonConverter.EscapeString(" *** \\\"Hello World!\\\" ***") + "' }";
  </code></pre>
  
  <p>and result in the following json</p>
  
  <pre><code>{ \"propName\" : '*** \"Hello World!\" ***' }
  </code></pre>