I tried so many things and I researched lots of sites. But I can't find that how to parse this data without using modules. I am using node.js for this. My problem is I can't get the data from url to parse it. I hope my question is clear now. Thanks for answers.
const https = require("https");
https.get("https://coderbyte.com/api/challenges/json/rest-get-simple", (resp) => {
}
);
The documentation of the https.get function provides you with an example. Does that help you?
const https = require('https');
https.get("https://coderbyte.com/api/challenges/json/rest-get-simple", (res) => {
res.on('data', (d) => {
obj = JSON.parse(d.toString());
console.log("Hobbies",obj.hobbies);
});
}).on('error', (e) => {
console.error(e);
});
So within the get callback you need a listener on if some data was received.