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

143
Views
How can I extract object values from 3 nested json arrays by matched string object values from a separate array and then display it in html/javascript

I would like to match the "title" and "thumbnail" values from one json response array to the values in another response array and show them in an html list. Essentially I'm matching a multidimensional array by regEx to another array and then I'm trying to display the content in a list like the one at the bottom. Any help is appreciated.

Here is the 1st Array

jsonArray = [
  nestedArray_1[{
    "position": "1",
    "title": "player 1",
    "thumbnail: www.picuture.com/jpeg"
  }, {
    "position": "2",
    "title": "player 1",
    "thumbnail: www.picuture2.com/jpeg"
  };],
  nestedArray_2[{
    "position": "1",
    "title": "player 2",
    "thumbnail: www.picuture.com/jpeg"
  }, {
    "position": "2",
    "title": "player 2",
    "thumbnail: www.picuture2.com/jpeg"
  };],
  nestedArray_3[{
    "position": "1",
    "title": "player 3",
    "thumbnail: www.picuture1.com/jpeg"
  }, {
    "position": "2",
    "title": "player 3",
    "thumbnail: www.picuture2.com/jpeg"
  };]
]

Below is the the second array it needs to match to

array2 = ["player1_details", "player2_details", "player3_details"]

I would like to have a html list with the title and image values from the jsonArray and the player details from array2.

example:
<ul>
  <li>player 1 </li><li>www.picuture1.com/jpeg" </li><li>player1_details </li>
  <li>player 2 </li><li>www.picuture2.com/jpeg" </li><li>player2_details </li>
  <li>player 3 </li><li>www.picuture3.com/jpeg" </li><li>player3_details </li>
</ul> 
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!