title: JSON Parse issue with array
body: <p>i am doing something wrong, i am passing array to html element and setting, data attribute. When i console log array got this.</p>
  
  <p><a href="https://i.stack.imgur.com/w8Avi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w8Avi.png" alt="enter image description here"></a></p>
  
  <p>Then doing</p>
  
  <pre><code>&lt;img class="d-block w-100" data-title="'+JSON.stringify(value.image_tree_titles) +'" /&gt;
  </code></pre>
  
  <p>in html looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/gtk6s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gtk6s.png" alt="enter image description here"></a></p>
  
  <p>But when i try JSON.Parse(), got sintax error with open bracket? Any idea what could be wrong?</p>