Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

272
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda