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

171
Views
How to use variable string text to access JSON array

I am using a movie API which first give a ID {also gives the title of the movie} on the basis of movie title and then we can access the movie data from that ID.

As you can see the result consists of an array which is actually the title of the movie I am getting.

So, I am getting the ID and title but to access its data I need to use its title. If I am unable to make you understand , here's an image

So I want to use the value of title to get year from the JSON but I am unable to do that. And this is the error

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

0

Try using

var year = data.content[title]
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!