How to download a json file from url
<p>I am solving mongodb tutorials from mongodb university. Their website has a link called "download homework". When I click on the link, nothing gets downloaded, instead the json file intended to be downloaded is displayed on a webpage with url like <a href="https://somepath.json" rel="nofollow noreferrer">https://somepath.json</a>.</p>

<p>My question is how to download a json file when you have the URL pointing to it? </p>