# Extract value from JSON

**URL:** https://community.thunkable.com/t/extract-value-from-json/1709142
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [February 1, 2022, 2:24pm UTC](https://community.thunkable.com/t/extract-value-from-json/1709142 "2022-02-01T14:24:03Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [February 1, 2022, 2:24pm UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/1 "2022-02-01T14:24:03Z")

</div>

Hi ,

I trying to get all values in label field under recipe under hits.

Sharing the code

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1bccf0dbf568e65e916d134ff9e9c8afae99c8e2.jpeg)

snapshot of json :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/0/b050443b54fac3ac4d5b54be73d877bfa50091bb.png)

Json response is lengthy, thus couldn’t share it here.

Your input is highly appreciable.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 1, 2022, 4:18pm UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/2 "2022-02-01T16:18:57Z")

</div>

To be able to give you any meaningful suggestions we need to see the JSON. You can save it to a TXT file and upload it in your post or provide the URL that you use to produce this JSON so that who ever wants to see how to help will need to exeute the URL and get the JSON.

---

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [February 2, 2022, 3:23am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/3 "2022-02-02T03:23:56Z")

</div>

[jsonresponse.txt](https://community.thunkable.com/uploads/short-url/wySyMvxKnFHCq5tzAJ48PCMZd6R.txt) (247.3 KB)  
Thank you for your suggestion Muneer.

Have attached Json response.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [February 2, 2022, 4:19am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/4 "2022-02-02T04:19:52Z")

</div>

Your blocks look correct and should work as long as the API server is generating a response. What is the value of the green `error` block when you preview the project?

You can also try (temporarily) replacing the green `response` block with a text block and pasting in the contents of the txt file you posted. That should also work as a test.

I couldn’t preview the demo I made because of [this problem](https://community.thunkable.com/t/cant-edit-or-preview-projects/1710542).

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [February 2, 2022, 4:59am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/5 "2022-02-02T04:59:44Z")

</div>

I was able to publish my demo as a web app and confirm that these blocks – which are basically the same as yours – work fine:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/0/80e7e83e479527407336a743f8c7bc9d54fef4f5.png)

I’m not able to keep it published but once we can preview projects in the browser again, you can test yours and check the value of the error block as I suggested above.

You can also use these blocks as a shortcut:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/4/14206b5103dfe65b2be445fe599fcd4d83e02cba.png)

---

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [February 2, 2022, 9:36am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/6 "2022-02-02T09:36:52Z")

</div>

Its working now with the same block and no changes made:)

---

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [February 2, 2022, 9:37am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/7 "2022-02-02T09:37:52Z")

</div>

Is it possible to display the image via image url from Json response?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 2, 2022, 9:41am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/8 "2022-02-02T09:41:39Z")

</div>

> [@sasi.preethag3yh](#):
>
> display the image via image url from Json response?

Yes, you can. You just need to add an `image` component and when parsing the `response` get the URL and assign it to the `image URL`.

---

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [February 2, 2022, 9:54am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/9 "2022-02-02T09:54:49Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a5884da54f0651765f2b9fc58ec9d7bcc8d2148a.jpeg)  
I am able to get the URL but the image is not displaying. Sharing the block. Is it correct?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 2, 2022, 10:17am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/10 "2022-02-02T10:17:12Z")

</div>

What would happen if you copy the content and enter it in the browser? Does it show the image?

---

<div class="post-metadata">

### Author: ![sasi.preethag3yh](https://avatars.discourse-cdn.com/v4/letter/s/a9a28c/32.png) [@sasi.preethag3yh](https://community.thunkable.com/u/sasi.preethag3yh)
#### Post date: [February 2, 2022, 10:23am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/11 "2022-02-02T10:23:07Z")

</div>

Yes Muneer. What I realized now is…Either Thunkable is slow or Json hit is slow. After several hits , I could see the expected output that too after seeking guidance from you.

Thank you so much for your time and guidance.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [May 3, 2022, 10:23am UTC](https://community.thunkable.com/t/extract-value-from-json/1709142/12 "2022-05-03T10:23:19Z")

</div>

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