How do you get JSON data using $.getJSON with Node.js
问题 I'm new to Node.js. I already have a frontend javascript script that uses an API and gets weather data like so: function getTextWeatherUsingStation(theStation){ theURL = 'https://api.weather.gov/stations/' + theStation + '/observations/current'; // return new Promise((resolve, reject) => { $.getJSON(theURL,function(data){ var myJSON = JSON.stringify(data) I read that you can't just use a library as is. I converted it over to a Node.js friendly file by wrapping it in module.exports = { and