title: Better way to make a JSON object?
body: <p>My following Code:</p>
  
  <pre><code>this.selectedMonths = JSON.parse(JSON.stringify(this.selectedMonths));
  </code></pre>
  
  <p>After this code, this.selectedMonths will be read as a properly formatted JSON object. </p>
  
  <p>My question is if there is any better way? Having to do JSON.parse(JSON.stringify(...)) which is two methods seems quite redundant. </p>
  
  <blockquote>
    <p>Side Note: JSON.stringify() on its own won't do the trick because it
    puts quotation marks on the entire JSON array and that's why I need
    JSON.parse() to get rid of those quotation marks.</p>
  </blockquote>