Added a toJson() method to OverlayConfiguration