title: Passing Attributes / objects through an attribute. Javascript
body: <p>Is there a way to pass an array or object through an attribute? like:</p>
  
  <pre><code>&lt;div id="myelem" myattr="{ title: 'hello', author: 'mike'}, { title: 'world', author: 'hellen'}, {...}"/&gt;
  </code></pre>
  
  <p>I just tried this using javascript, but only the first object are being returned, i would like to have something like this:</p>
  
  <pre><code>for(let i=0; i&lt;this.myattr.length; i++){
    console.log(this.myattr.title);
  }
  </code></pre>
  
  <p>Any ideas? Thankyou</p>