title: How localstorage data append in formData
body: <p>I append my localstorage data in formData</p>
  <pre><code>let products = [];    
  for (i = 0; i &lt; localStorage.length; i++)
       {
        x = localStorage.key(i);
        if (x !='debugbar-time-new' &amp;&amp; x !='debugbar-time')
        {
          item = JSON.parse(localStorage.getItem(x))
          products.push({'_id' : item['_id'] , 'title':item['title'], 'quantity':item['quantity']});
        }
      }
      formData.append('products',JSON.stringify(products))
  </code></pre>
  <p>now my data in this form</p>
  <pre><code>products, [{&quot;_id&quot;:5,&quot;title&quot;:&quot;bicycle&quot;,&quot;quantity&quot;:1},{&quot;_id&quot;:2,&quot;title&quot;:&quot;i7&quot;,&quot;quantity&quot;:3},{&quot;_id&quot;:4,&quot;title&quot;:&quot;i5&quot;,&quot;quantity&quot;:1},{&quot;_id&quot;:1,&quot;title&quot;:&quot;i5&quot;,&quot;quantity&quot;:37},{&quot;_id&quot;:3,&quot;title&quot;:&quot;i7&quot;,&quot;quantity&quot;:1}]
  </code></pre>
  <p>I get data in my controller</p>
  <pre><code>$req = $this-&gt;request-&gt;getVar('products');
  </code></pre>
  <p>I receive data in encoded form.
  How do I convert it in array and other forms?</p>