added ToJSON and FromJSON instances for BaseUrl