# Counting JSON objects (again!)

**URL:** <https://community.thunkable.com/t/counting-json-objects-again/3372703>\
**Category:** Questions about Thunkable X\
**Created:** [November 28, 2024, 1:49am UTC](https://community.thunkable.com/t/counting-json-objects-again/3372703 "2024-11-28T01:49:26Z")\
**Posts on this page:** 4\
**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:** [November 28, 2024, 1:49am UTC](https://community.thunkable.com/t/counting-json-objects-again/3372703/1 "2024-11-28T01:49:26Z")

</div>

Hi,

I am trying to get a count on the number of items in a JSON object -

`[{"name":"Jayden Yates"," ___class":"roll"},{"name":"Jenna Zane","___ class":"roll"},{"name":"Jeremiah Anderson"," ___class":"roll"},{"name":"Jessica Bailey","___ class":"roll"},{"name":"John Chambers"," ___class":"roll"},{"name":"Jonathan Dixon","___ class":"roll"},{"name":"Jordan Ellis"," ___class":"roll"},{"name":"Joseph Fletcher","___ class":"roll"},{"name":"Joshua Gonzalez"," ___class":"roll"},{"name":"Joy Hayes","___ class":"roll"}]`

JSON viewer shows the path as

 ![2024-11-27 21 43 13](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/88a7ee201b333befc95e1eadea5d7274ec219a5c.png)

If I get the length of the response it shows as 865.

In the Get Property of Object block I have tried array.name, name, array.name, array[0].name of response but get 0 for all.

Would appreciate any assistance.

Thanks  
Steve

---

<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:** [November 28, 2024, 5:51am UTC](https://community.thunkable.com/t/counting-json-objects-again/3372703/2 "2024-11-28T05:51:46Z")

</div>

I formatted the JSON you posted using the \</\> button in the toolbar so it was valid for using with [Best JSON Viewer and JSON Beautifier Online](https://codebeautify.org/jsonviewer). The first word “array” in your screenshot is not a property name. It just means the JSON starts with an array/list. This works to give you the size of the array (10 items).

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/6/e697d8ee8515d774bde144459a61f75bbaa210e5.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:** [November 28, 2024, 1:22pm UTC](https://community.thunkable.com/t/counting-json-objects-again/3372703/3 "2024-11-28T13:22:28Z")

</div>

Thanks, that worked.

---

<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:** [February 26, 2025, 1:23pm UTC](https://community.thunkable.com/t/counting-json-objects-again/3372703/4 "2025-02-26T13:23:23Z")

</div>

Closed on February 26, 2025, 1:23pm UTC

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