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

152
Views
Fetch json from API, create HTML code within a div per object in array

I am fetching JSON results from an API I created. There's a dataset called Title with objects in that JSON that I'd like to forEach through. Then I want to append the following HTML code WITHIN a div and then append:

 <section class="section">
  <img src="IMAGE_FROM_API.PNG" class="image" />
  <div class="content">
    <h2 class="title">
      OBJECT TITLE TITLE
    </h2>
    <p class="paragraph">ITEM DESCRIPTION</p>
  </div>
</section>

I want to append that code as there's an array that is created that has just the ITEM TITLE. I will use some other functions to grab the image and the description.

about 4 years ago · Juan Pablo Isaza
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!