title: Converting array to json in react application
body: <p>In my react code I have items as an array in my state.</p>
  
  <pre><code>items[]
  </code></pre>
  
  <p>I was able to populate items array with few data and need to pass it to my web service.
  First I need to convert that array to json. This is just crashing for me when I do the
  Json.stringify. </p>
  
  <p>Is there a different way to do it in react application?</p>
  
  <pre><code>storeDataInDatabase(){
  
      const myObjStr = JSON.stringify(this.props.items);
  
      console.log(myObjStr);
  }
  </code></pre>