title: What is the use of stringify and then parse a JSON object
body: <p>Is there any specific reason for  <code>stringify</code>a JSON object and <code>parse</code>it again.
  Obviously it will return the Initial object itself.
  is there advantage of doing this?</p>
  
  <blockquote>
    <p>Code 1: stringify and then parse</p>
  </blockquote>
  
  <pre><code> var textstring = '{ "employees" : [' +
  '{ "firstName":"John" , "lastName":"Doe" },' +
  '{ "firstName":"Anna" , "lastName":"Smith" },' +
  '{ "firstName":"Peter" , "lastName":"Jones" } ]}';
  var obj=JSON.parse(textstring);
  var obj2=JSON.parse(JSON.stringify(obj));
  </code></pre>
  
  <blockquote>
    <p>code 2:Direct Use</p>
  </blockquote>
  
  <pre><code>var textstring = '{ "employees" : [' +
  '{ "firstName":"John" , "lastName":"Doe" },' +
  '{ "firstName":"Anna" , "lastName":"Smith" },' +
  '{ "firstName":"Peter" , "lastName":"Jones" } ]}';
  var obj=JSON.parse(textstring);
  var obj2=obj;
  </code></pre>