title: Fabric.js loadFromJSON() not working properly. It gives javascript error "Uncaught TypeError: Cannot read property 'set' of undefined" in fabric.js
body: <p>This is a json </p>
  
  <pre><code>{"objects":[{"type":"image","originX":"center","originY":"center","left":379,"top":136,"width":2000,"height":2000,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":1,"strokeDashArray":null,"strokeLineCap":"butt","strokeLineJoin":"miter","strokeMiterLimit":10,"scaleX":0.1,"scaleY":0.1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","src":"http://localhost/kraftkadev/uploaded/shop/sticker-1.png","filters":[],"crossOrigin":""},{"type":"image","originX":"center","originY":"center","left":269,"top":299,"width":2000,"height":2000,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":1,"strokeDashArray":null,"strokeLineCap":"butt","strokeLineJoin":"miter","strokeMiterLimit":10,"scaleX":0.1,"scaleY":0.1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","src":"http://localhost/kraftkadev/uploaded/shop/sticker-1.png","filters":[],"crossOrigin":""}],"background":""} 
  </code></pre>
  
  <p>This is my JSON file but it just shows the first image not second one &amp; gives error as "<strong>Uncaught TypeError: Cannot read property 'set' of undefined</strong>" </p>
  
  <p>I used Fabric.js loadFromJSON() function to load json to canvas.
  I also used below syntax but it does not help either.</p>
  
  <pre><code>canvas.loadFromJSON(json,canvas.renderAll.bind(canvas));
  </code></pre>