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

105
Views
fetch data which come from firebse

I just wanted to fetch that data which coming from this https://food-ordring-af14d-default-rtdb.firebaseio.com/order the data is in the form of JSON and it looks like that

{
  "-MzJLd0sSssh9tbJbjUS" : {
    "orderDetails" : [ {
      "amount" : 4,
      "id" : "m1",
      "name" : "Shushi",
      "price" : 22.99
    }, {
      "amount" : 3,
      "id" : "m2",
      "name" : "Schnitzel",
      "price" : 16.5
    } ],
    "user" : {
      "address" : "A-132 shiv vihar,rishal garden,Nangloi",
      "city" : "New delhi",
      "name" : "Bhupender Sharma",
      "postal" : "110041"
    }
  },
  "-MzJOf_52xhRQi3izTRV" : {
    "orderDetails" : [ {
      "amount" : 2,
      "id" : "m3",
      "name" : "Barbecue Burger",
      "price" : 12.99
    }, {
      "amount" : 2,
      "id" : "m4",
      "name" : "Green Bowl",
      "price" : 18.99
    } ],
    "user" : {
      "address" : "Nangloi",
      "city" : "New delhi",
      "name" : "ANkit",
      "postal" : "445575"
    }
  }
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try this code .. here some example

const fetchdata = async()=>{
  const response = await fetch('https://jsonplaceholder.typicode.com/todos')
  const jdata = await response.json()
  console.log(jdata)
}

fetchdata()

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!