# \[Solved\] JSON still beating me

**URL:** <https://community.thunkable.com/t/solved-json-still-beating-me/2626374>\
**Category:** Questions about Thunkable X\
**Created:** [October 3, 2023, 10:43pm UTC](https://community.thunkable.com/t/solved-json-still-beating-me/2626374 "2023-10-03T22:43:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [October 3, 2023, 10:43pm UTC](https://community.thunkable.com/t/solved-json-still-beating-me/2626374/1 "2023-10-03T22:43:17Z")

</div>

I have this JSON response -

```auto
[
    {
        "id": 1,
        "regletter": "K"
    },
    {
        "id": 40,
        "regletter": "Y"
    }
]

```

and these are my blocks

 ![RegLetter](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/1/d1c57a37d2d794c8a366eb294efc86eba2cc9562.png)

and the result of Live test

![results](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/7812e9890f7b157fb96535487652c12b6472a344.png)

Don’t understand what I would get null. I have the same blocks in another app and it returns results just fine.

---

<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:** [October 3, 2023, 11:50pm UTC](https://community.thunkable.com/t/solved-json-still-beating-me/2626374/2 "2023-10-03T23:50:35Z")

</div>

I haven’t seen [Best JSON Viewer and JSON Beautifier Online](https://codebeautify.org/jsonviewer) display JSON like this but it shows the path to the “regletter” property as “array[1].regletter”. I would have thought it would be “[1][1].regletter”. So I would try to get the property of the JSON object with either of those text strings to see which one works. And then adjust your blocks from there. Because right now, you’re getting the property “[1].regletter”.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/fedc46cdbf20f394180e333da93aa7f379cc31cd.png)

---

<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:** [October 4, 2023, 5:52am UTC](https://community.thunkable.com/t/solved-json-still-beating-me/2626374/3 "2023-10-04T05:52:09Z")

</div>

Funny… when I do a test myself, the only one that works is “[1].regletter”.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/6/96255b752e17a46b455589729e1451d26a5645df.png)

---

<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:** [October 4, 2023, 5:55am UTC](https://community.thunkable.com/t/solved-json-still-beating-me/2626374/4 "2023-10-04T05:55:04Z")

</div>

This works for looping through the JSON object:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/c/7ca4e380f29ec40aa555bc8df79554226600cff8.png)

---

<div class="post-metadata">

**Author:** ![steve\_synopsis](https://avatars.discourse-cdn.com/v4/letter/s/48db29/32.png) [@steve\_synopsis](https://community.thunkable.com/u/steve_synopsis)\
**Post date:** [October 4, 2023, 2:22pm UTC](https://community.thunkable.com/t/solved-json-still-beating-me/2626374/5 "2023-10-04T14:22:11Z")

</div>

Ahh, I see the error of my ways!

I was doing a count through the object, but not referencing the count in the get property block!

Serious brain fog!!

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [October 4, 2023, 2:27pm UTC](https://community.thunkable.com/t/solved-json-still-beating-me/2626374/6 "2023-10-04T14:27:02Z")

</div>


