Example show replication of TCanvas with all primitives, using drawingJSON() function
Replicate
Update