toJSON
The toJSON() method of the URL interface returns a string representing the URL object. This is the same string that URL.toString() returns.
The toJSON() method of the URL interface returns a string representing the URL object. This is the same string that URL.toString() returns.