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

142
Views
How to import data from json objects using ajax js?

How to get variable which allow to get 'prod_id' from all objects 0,1,2?. I tried several ways, but i can get only object in console. I want to use ${}, don't know how.

let url = "http://localhost:3000";

$.ajax({
    method: "GET",
    url: url + `/0/0/0/`,
    dataType: 'json',
    success: function(data){
        console.log(data)
    },
});
{
  "0": {
    "prod_id": "1",
    "prod_added": "2015-08-25 15:15:22",
    "prod_producer": "7",
    "prod_amount": "8.0000",
    },

  "1": {
    "prod_id": "2",
    "prod_added": "2015-08-25 15:15:22",
    "prod_producer": "7",
    "prod_amount": "8.0000",
  },
  "2": {
    "prod_id": "3",
    "prod_added": "2015-08-25 15:15:22",
    "prod_producer": "8",
    "prod_amount": "39996.0000",
  }
}
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!