WebURLURL.toJSONmethod URL.toJSON#URL.toJSON(): stringThe toJSON() method of the URL interface returns a JSON representation of the URL. Examples ##const myURL = new URL('https://example.org/foo'); console.log(myURL.toJSON()); // Logs "https://example.org/foo" Return Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/toJSON
method URL.toJSON#URL.toJSON(): stringThe toJSON() method of the URL interface returns a JSON representation of the URL. Examples ##const myURL = new URL('https://example.org/foo'); console.log(myURL.toJSON()); // Logs "https://example.org/foo" Return Type #stringSee #https://developer.mozilla.org/docs/Web/API/URL/toJSON