title: How to iterate through an array of objects in polymer
body: <p>So looking around and testing things I can easily iterate through an array or a list.</p>
  
  <pre><code>&lt;template is="dom-repeat" items="{{inputs}}"&gt;
      &lt;paper-input label={{item}} id={{item}} style="width:5em"&gt;&lt;/paper-   input&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>However I am having problems iterating through an array of obects.</p>
  
  <pre><code>&lt;iron-data-table id="outputtable" items="{{output}}"&gt;
          &lt;template is="dom-repeat" items="[[output]]"&gt;
                  &lt;data-table-column name="[[item.key]]"&gt;
                      &lt;template&gt;[[item.value]]&lt;/template&gt;
                  &lt;/data-table-column&gt;
          &lt;/template&gt;
  &lt;/iron-data-table&gt;          
  </code></pre>
  
  <p>This code might not be right otherwise but I cannot get past the error</p>
  
  <blockquote>
    <p>Polymer::Attributes: couldn`t decode Array as JSON</p>
  </blockquote>
  
  <p>The first example of me iterating through an array of strings, i actually want to iterate through an array of objects but have not been able to do so.</p>
  
  <pre><code>[{"uri":"/emoji/1"},{"uri":"/emoji/2"}]
  </code></pre>
  
  <p>Simple example of my array of objects.</p>
  
  <pre><code>&lt;iron-ajax id="ajaxPost" url={{url}} handle-as="json" content-type="application/json" method="POST" on-response=clearAndOutput &gt; &lt;/iron-ajax&gt;
  
  
  this.output [Object { uri="/emoji/1"}, Object { uri="/emoji/2"}, Object { uri="/emoji/3"}, 35 more...] 
  
  clearAndOutput: function(data) {
      this.returnvalue = data.detail.response;
  }
  </code></pre>