Ravenous part 4 accessing jsonResponse object

I’ve been trying to access the jsonResponse object returned by the yelp API to retrieve the values I need (step 19), but cannot figure out how, please can someone help.

Thanks in advance

Hi James.

First try to console.log the response.json() to see if the response is sending the correct data from the fetch you made. If you see the data on your console log then you can manipulate that data otherwise you need to check if you are fetching the data correctly.

Hope this helps.


@jameswaterman I was wondering the same thing as you. I found https://www.yelp.com/developers/documentation/v3/business on the Yelp Developer site. This lists the keys required in step 19 and info on them. I THINK this is the answer you were looking for.

As state I was wondering the same thing as you and this is what I was able to find.


1 Like

if you are using the fetch api, don’t forget to handle the promise, i.e. Yelp.search(business).then(response);