title: HOW to convert string In JSON that has html objects with stringify function?
body: <p>In Object that contains HTML element objects key of 'elem'</p>
  
  <pre><code>var obj = {
     param1:"",
     elem:document.createElement('script').textContent = 'alert("JSON stringify")';
  }
  </code></pre>
  
  <p>I try to convert the obj into string using </p>
  
  <pre><code>JSON.stringify(obj);
  </code></pre>
  
  <p>It gets only elem as empty Object.</p>
  
  <pre><code>{
  "param":"",
  "elem":{}
  }
  </code></pre>
  
  <p>My question is :</p>
  
  <ol>
  <li>Why it returns empty object when call stringify function in JSON?</li>
  <li>Is it possible to convert the HTML elements also as string?</li>
  </ol>