# Fetch JSON doesn't work

**URL:** <https://community.glideapps.com/t/fetch-json-doesnt-work/69318>\
**Category:** Ask for Help\
**Created:** [January 6, 2024, 11:23pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318 "2024-01-06T23:23:47Z")\
**Posts on this page:** 19\
**Page:** 2

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 8:28pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/21 "2024-01-07T20:28:33Z")

</div>

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

Would you like to help me please?

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 8:30pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/22 "2024-01-07T20:30:14Z")

</div>

yes… you can schedule a meeting with me here:

> **[StructureArt DIGITAL clients](https://structureart-digital-log.glide.page/dl/User_Profile)**
>
> StructureArt DIGITAL customers log

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 8:33pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/23 "2024-01-07T20:33:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 8:36pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/24 "2024-01-07T20:36:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 8:43pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/25 "2024-01-07T20:43:05Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/5/75c2e79ef1c3c45875193be25b06f33b3673c361.jpeg)

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 8:46pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/26 "2024-01-07T20:46:13Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 8:53pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/27 "2024-01-07T20:53:27Z")

</div>

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](https://www.youtube.com/watch?v=fjgcxBvrWbE&lc=UgztR_i29yStymw3NSJ4AaABAg.9zGkaiFHFi09zHSP8Sjgjq)

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

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/a/da92e7bfb150a7d31b26f4093e7b69fc576765a8.png)

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 8:54pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/28 "2024-01-07T20:54:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 8:55pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/29 "2024-01-07T20:55:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 8:58pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/30 "2024-01-07T20:58:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 9:03pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/31 "2024-01-07T21:03:14Z")

</div>

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

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/4/9492c6dd908af923f4fc65a1cd1b8c486c59ce2c.jpeg "Create a Movies App (with Fetch JSON) | Glide Tutorial #nocode") ](https://www.youtube.com/watch?v=fjgcxBvrWbE)

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 9:04pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/32 "2024-01-07T21:04:34Z")

</div>

ok… did **.genres[0].genre\_name** fixed your problem?

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 9:08pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/33 "2024-01-07T21:08:22Z")

</div>

Yes i think ! Thank you !

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 9:13pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/34 "2024-01-07T21:13:12Z")

</div>

Mark my answer as a solution… to close this topic

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 9:19pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/35 "2024-01-07T21:19:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 9:22pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/36 "2024-01-07T21:22:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Vikatchu](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/vikatchu/32/68714_2.png) [@Vikatchu](https://community.glideapps.com/u/Vikatchu)\
**Post date:** [January 7, 2024, 9:28pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/37 "2024-01-07T21:28:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [January 7, 2024, 9:31pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/38 "2024-01-07T21:31:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [January 14, 2024, 9:32pm UTC](https://community.glideapps.com/t/fetch-json-doesnt-work/69318/39 "2024-01-14T21:32:44Z")

</div>

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

[Previous page](https://community.glideapps.com/t/fetch-json-doesnt-work/69318.md?page=1)
