title: Why does typeof JSON.parse returns string
body: <h2>Brief Explanation</h2>
  
  <p>I'm using bottle.py as a simple web server and I'm rendering a javascript, passing it a python dictionary, then in the javascript file I want to add another field to the object and make a post request with the result.</p>
  
  <p>However when i log the typeof datain <code>likePost()</code> returns string, so I can't add the new property to the object.</p>
  
  <p>Also I tried without <code>JSON.Stringify()</code> and returns the following error: <code>Unexpected token ' in JSON at position</code></p>
  
  <h2>Code</h2>
  
  <pre><code>    function commentPost(post){
          var comment = prompt("Comment:", "Great post I like it")
          data = JSON.parse(JSON.stringify(post))
          console.log(typeof data)                      // RETURNS STRING
          data.comment = comment                        // THIS DOESN'T WORK
          fetch("/post", {
              method: "POST", 
              body: JSON.stringify(data)
          }).then(res =&gt; {
              likePost(data)       
          });
  
      }
  </code></pre>
  
  Console.log(post)
  
  <pre><code>{'hashtag': 'landscapephotography', 'shortcode': 'B_5b0IWqrRU', 'display_url': 'https://scontent-mad1-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/95910887_233194497953707_7239044831960646903_n.jpg?_nc_ht=scontent-mad1-1.cdninstagram.com&amp;_nc_cat=107&amp;_nc_ohc=i179pDQmui0AX82O3nB&amp;oh=676ca07cba3af57944abcba4d3a27ad2&amp;oe=5EDE8D74', 'thumbnail_src': 'https://scontent-mad1-1.cdninstagram.com/v/t51.2885-15/sh0.08/e35/s640x640/95910887_233194497953707_7239044831960646903_n.jpg?_nc_ht=scontent-mad1-1.cdninstagram.com&amp;_nc_cat=107&amp;_nc_ohc=i179pDQmui0AX82O3nB&amp;oh=1ff2ac0b031bcc7cbdbb64b2a661ea1b&amp;oe=5EDF0745', 'is_video': False, 'comments_disabled': False, 'caption': 'Photo by Jelen Girona on May 07, 2020.', 'comments_count': 0, 'timestamp': 1588877630, 'owner': '15642627659', 'likes_count': 0}
  </code></pre>
  
  Console.log(typeof post)
  
  <p><code>string</code></p>