updated setter and toJSON for url-args