First of all, it depends on what operating system you're using.
On Windows
If you right click and press "save" (Alternatively use ctrl-s) and then chose the file format "json" when saving.
On macOS
You can do this in a few ways, I'd suggest using curl. You'd do this by opening the terminal and navigating to the directory you'd like to download the file to. Then enter the following:
curl https://somedomain.com/somepath.json > fileName.json
This will download the file in its original format.
Answer from Maximilian on Stack OverflowFirst of all, it depends on what operating system you're using.
On Windows
If you right click and press "save" (Alternatively use ctrl-s) and then chose the file format "json" when saving.
On macOS
You can do this in a few ways, I'd suggest using curl. You'd do this by opening the terminal and navigating to the directory you'd like to download the file to. Then enter the following:
curl https://somedomain.com/somepath.json > fileName.json
This will download the file in its original format.
Answer from Maximilian on Stack OverflowFirst of all, it depends on what operating system you're using.
On Windows
If you right click and press "save" (Alternatively use ctrl-s) and then chose the file format "json" when saving.
On macOS
You can do this in a few ways, I'd suggest using curl. You'd do this by opening the terminal and navigating to the directory you'd like to download the file to. Then enter the following:
curl https://somedomain.com/somepath.json > fileName.json
This will download the file in its original format.
In a Mac, the curl solution proposed above doesn't work if the url isn't public (on my side I got this permissions error: unauthorized permission requested.
So, here's an alternative that worked for me. Using the Chrome browser, go to the url with the json, then right click, then 'Inspect'. That brings up the Chrome devtools ui. From there go to 'Sources' and you will see the json file in the list. Then right click and you will be able to click 'Save as'. This will then download the file to wherever you want!

UPDATE: In case this method doens't work (I realise it doesn't work in all cases), then simply copy-paste the text of the json into a text editor, and save the file with the json extension.
Good easy way to download JSON from the web?
JSON Files with download of all pics - what for? : googlephotos
How can I download a JSON of all the live chat replay in a Youtube Live Chat ? : techsupport
Help with error "Unable to download JSON metadata"
Videos
So I've got a JSON file I want to download from a website.
The data comes in a URL that ends with a 6 digit ID number (unfortunately I cannot find a logic to the ID but it's not a single increment system, so I'd like to be able to check like the next 10,000 ID's say once a week).
I'd then like to pull parts of the JSON files into some kind of spreadsheet (dumping to a CSV is fine). There is a lot of data I don't need/want in these files. I know how to pull the data into excel but I feel like there will be a better way to do this automagically.