title: Tell me the "right way" to build objects from JSON
body: <p>Say I have a class, for example:</p>
  
  <pre><code>class myClass
     name: ""
     id: ""
  </code></pre>
  
  <p>And say I have some JSON like:</p>
  
  <pre><code>[{name:"foo", id:1}, {name:"bar", id:2}]
  </code></pre>
  
  <p>Tell me a generic way to build an array of myClass objects from the array above (without manually mapping each field)</p>