I have a task that involves extracting information from two JSON files. The goal is to log the names from one file and for each name, list the corresponding titles from the other file. The connection between the two files is made using an ID, although one file refers to it as "id" while the other uses "userId" (there is also another key named id which serves a different purpose).
The data can be found at the following URLs: https://jsonplaceholder.typicode.com/posts and https://jsonplaceholder.typicode.com/users
What I am looking to achieve is a format similar to this:
name1<br>
-title1<br>
-title2<br>
-title3<br>
-title4<br>
name2<br>
-title5 <br>
-title6<br>
-title7<br>
-title8