Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Asynchronous Programming with JavaScript Understanding Promises Handle Multiple Promises with Promise.all

The json data does not work, I need help finding a solution?

There are multiple instances of students having a hard time getting the json data to match to a Wikipedia article because the spelling of the names differs.

I've tried the suggested solutions, but nothing seems to work for me. But, I don't know enough at this point to help myself.

Some of the questions date back to 2020, so it seems odd that there's been nothing amended to help us figure out what to do when the data does not match. I really feel like adding a section about what to do in the case of confusing data should be included in this course.

1 Answer

Steven Parker
Steven Parker
231,269 Points

Probably the most generic solution is to simply display an error message when a matching name isn't found. I'm pretty sure at least one of the solutions proposed in the past does this.

If you want to find a match regardless of spelling, that would require some rather advanced methods well beyond the scope of this course.