Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
How can I get data from the url and parse it for getting hobbies or names?

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) => {
    
  }
);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

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.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!