# How should I work with this JSON format?

**URL:** <https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247>\
**Category:** Questions about Thunkable X\
**Tags:** webapi, json\
**Created:** [June 30, 2021, 5:49pm UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247 "2021-06-30T17:49:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [June 30, 2021, 5:49pm UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247/1 "2021-06-30T17:49:49Z")

</div>

Hello there,

I get a response from an API in JSON format, which looks like this :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/1/21da8c4af3cdd09bc99c1ca52c81b60f82b5d6de.png)

I need to make a list of all the **subjects** from every item (red boxes) and display it on a list-viewer. How should I do that? I have tried some things, but it didn’t work out for me - seems like some of my blocks (mainly `getProperty` & `getListItem` ones) are not arranged properly…

If you have any idea/advice, please let me know 🙂  
Any help would be appreciated! Thanks a lot!

---

<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:** [June 30, 2021, 9:02pm UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247/2 "2021-06-30T21:02:11Z")

</div>

@muneer has a great demo for this. He can probably provide a project link for you.

---

<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:** [June 30, 2021, 9:28pm UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247/3 "2021-06-30T21:28:01Z")

</div>

This is the block of code for getting sub-values.

> [@How to get all the nodes irrespective of the userid](https://community.thunkable.com/t/how-to-get-all-the-nodes-irrespective-of-the-userid/1354024/8):
>
> See this block This is the output [image]

Tomorrow I can send the project link when I’m using my computer.

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [July 1, 2021, 9:20am UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247/4 "2021-07-01T09:20:02Z")

</div>

Hi Kartik,

This looks like you’re working with lists as well as nested properties. The square brackets `[]` indicate that you are working with a list of items.

You will need to get the property **data** of your JSON response.

**data** is a list of lists.

For each item in your list **data** , you will need to get the second item in the list. These will be your subjects.

The blocks should look something like this. If you share your JSON response in text format, I can test it out and confirm what the blocks would look like.

 ![Screen Shot 2021-07-01 at 10.18.33 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/1/8160255b1903baa14d485d9964e655fafe19e0d7.png)

Thanks,  
Jane

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [July 1, 2021, 10:51am UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247/5 "2021-07-01T10:51:30Z")

</div>

Thanks a lot, @jane for the idea! Also thanks @tatiang & @muneer for taking a look here!

* * *

Luckily, I figured out the solution! I had to experiment with the object blocks for some time, and eventually I stuck upon the solution. Here’s what I did :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/4/842e22e1fe3b25e2e3fb92f798b8eb972e6aaf5d.png)

In my first try, turns out I didn’t use the `get Object from JSON` block. Later I tried to add it, and things started working out.

Thanks a lot anyways! 😀

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [July 5, 2021, 8:12am UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247/6 "2021-07-05T08:12:58Z")

</div>

That’s great to hear! Thanks for the update ☀

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:20pm UTC](https://community.thunkable.com/t/how-should-i-work-with-this-json-format/1372247/7 "2024-11-08T13:20:03Z")

</div>


