updated World.toJSON to new Shape structure