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

118
Views
How do I format single array nested JSON data and print it a browser using AJAX

I need help in formatting single array nested JSON data and displaying it in a browser. My main issue is picking a single id of an array of data, formatting it, and printing it on a browser.

I have so far succefully print only array using $('#data').html( JSON.stringify(response));, but no idea on how to print or display formatted JSON on a browser.

<div id="data"></div>

<script>
let response = [
    {"person":[{"id":1,"Name":"ben","Location":"uk","History":"Born 1990","Status":"male"}]}
];


$('#data').html( JSON.stringify(response));

</script>

Kindly

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

can't get your question properly, Are You asking about how to display the data inside the array using an specific id?

if it is the question, then try the below code,

$('#data').html(JSON.stringify(response[0].person[0]))
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!