Fetch JSON doesn't work

Yes, totally, that’s what I’ve been trying to do since Friday.

Would you like to help me please?

yes… you can schedule a meeting with me here:

Just to show me how to put genres?
Can’t you explain it quickly in writing?

No… it is complicated… over 1 hour of work… maybe more

Sorry, I can’t afford this, which is why I go through a forum and try to learn on my own otherwise I would have paid someone on fiverr.
Everything’s already done, my site’s practically finished, all that’s left are the genres that refuse to be mit. I’m surprised it would only take an hour.
All I did was ask for a little help, but even on a forum people want to charge, I think it’s a shame.
Have a nice day

If you already have a fetching set… and list pull out… then what is the problem?
I see you pulled out the names and ratings… the same for the genre… just take the right position in JSON…
I did not know… you have all set up already…

Because when I want to enter the condition to have the gender, it loads in a loop
I get the impression that the gender isn’t in the .results I’ve created

I followed this video: https://www.youtube.com/watch?v=fjgcxBvrWbE&lc=UgztR_i29yStymw3NSJ4AaABAg.9zGkaiFHFi09zHSP8Sjgjq

and everything works fine except for the gender, which doesn’t appear.

what is the code in the genre column? it looks like you did not finish full position

const jsonString = p1;

const javascriptObject =
JSON.parse(jsonString);

return javascriptObject[p2].genres;

or rating is work

const jsonString = p1;

const javascriptObject =
JSON.parse(jsonString);

return javascriptObject[p2].rating;

if u want the link i send u

Are you parsing JSON for each column? That will slow down your app…
genres have sub-fields… so you need to put .genres[0].genre_name
Also… I’m afraid that you are fetching JSON for each row???
That will finish your daily quota very fast… plus your API key is exposed

I don’t know, I just followed the video, I didn’t understand everything, I just redid what he was doing.

ok… did .genres[0].genre_name fixed your problem?

Yes i think ! Thank you !

1 Like

Mark my answer as a solution… to close this topic

is it possible, with the code I sent you, to have several genres at the same time? Or do I have to do something else?

Yes… change the genre subname… analyze the JSON file and find what else you have under the genre category.

it’s ok if y send you the json file ? for help me

I have a customer now… prepare your question and email me… i will respond later

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.