title: How to restore/reuse json serialized objects in fabricjs?
body: <p>I am trying to create a collaborative whiteboard with socket.io and fabric.js.</p>
  
  <p>When a user draws something I send the path to other users as a JSON format:</p>
  
  <pre><code>canvas.on('path:created', function(e) {
    canvas.remove(fabric.Path.fromObject(JSON.stringify(e.path)));
    socket.emit('add path', e.path.toJSON());
  });
  </code></pre>
  
  <p>How can I recreate this object on the canvas here?</p>
  
  <pre><code>socket.on('add path', function(path) {
    canvas.add(path); // doesn't work
  });
  </code></pre>