title: JSON String inside a JSON
body: <p>I want to create a JSON string inside a JSON request. Here is my code,</p>
  
  <p><a href="http://jsfiddle.net/kjpnbqz4/" rel="noreferrer">Fiddle</a></p>
  
  <p><strong>JS</strong></p>
  
  <pre><code>var x = {
      a: 1,
      b: 'a sample text',
  };
  
  var request = {
      t: JSON.stringify(x),
      c: 2,
      r: 'some text'
  };
  
  console.log(request);
  </code></pre>
  
  <p>Can someone help me how to escape the double quotes?</p>
  
  <p><strong>Console</strong></p>
  
  <pre><code>Object {
    t: "{"a":1,"b":"a sample text"}", //This creates a problem, double quotes inside double quotes.
    c: 2, 
    r: "some text"
  }
  </code></pre>
  
  <p>Thanks in advance.</p>