ElbertF/Raphael.JSON — Issue #4: paper.toJSON() does not work for id attributes 
Author: ryanm
Created: 2012-01-10 22:46:22+00:00
State: open

Draw any element and assign it an id:

var c = paper.circle(10,10,5);
c.node.id = "mycircle";

Run:

var json = paper.toJSON();
paper.clear();
paper.fromJSON(json);

The json object will be missing the id="mycircle" on the circle node.