title: Difference between JSON.stringify and JSON.parse
body: <p>I have been confused over when to use these two parsing methods.</p>
  
  <p>After I echo my json_encoded data and retrieve it back via ajax, I often run into confusion about when I should use <strong>JSON.stringify</strong> and <strong>JSON.parse</strong>.</p>
  
  <p>I get <code>[object,object]</code> in my <em>console.log</em> when parsed and a JavaScript object when stringified.</p>
  
  <pre><code>$.ajax({
  url: "demo_test.txt",
  success: function(data) {
           console.log(JSON.stringify(data))
                       /* OR */
           console.log(JSON.parse(data))
          //this is what I am unsure about?
      }
  });
  </code></pre>