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

103
Views
Impresión JSON a HTML

¿Alguna idea de cuál es la mejor manera de obtener json de webhook a HTML? Ya llegué al paso donde puedo imprimir el json del webhook y un json en el script y se ve IGUAL pero el del webhook da "indefinido".

 <body> <h2>Print from Integromat</h2> <p id="demo"></p> <script> let xhr = new XMLHttpRequest(); xhr.open("POST", "https://hook.integromat.com/xyxyxyxyxyxyxyxyxyx", true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onload = function(e) { // Error... if (this.status != 200) return alert("Error") // Success.. let json = JSON.stringify(this.response); let text = ""; for(let i = 0; i < json.length; i++) { let obj = json[i]; text += obj.firstname + "<br>"; text += obj.email + "<br><hr>" } document.getElementById("demo").innerHTML = text; } xhr.send(JSON.stringify({ //JSON to send date: new Date(), })); </script> </body>

¡Muchas gracias!

about 4 years ago · Santiago Gelvez
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!