# Get property of object create object with fields

**URL:** <https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844>\
**Category:** Questions about Thunkable X\
**Tags:** list, json, object, clone\
**Created:** [January 13, 2022, 3:55pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844 "2022-01-13T15:55:40Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [January 13, 2022, 7:55pm UTC](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844/6 "2022-01-13T19:55:51Z")

</div>

You created a single object containing lists. The right way to do this is to create a **list of objects** where each list item is an object with various properties for a single button. Then you loop through the list and read the object properties to set the button values.

I’m not at my computer but the first post here shows an example of what a list of objects looks like:

> [@Coding Challenge! ~ Sort a List of Objects](https://community.thunkable.com/t/coding-challenge-sort-a-list-of-objects/617337):
>
> I came across a pretty complex algorithm that I developed last year that I thought would be challenging and useful of others. So hence… Coding Challenge Sort a List of Objects by a property inside of the objects Remix The full code and project can be remixed here: [Thunkable](https://x.thunkable.com/copy/5802ab2995225d8257ea546a67973a67) Walkthrough Let’s first define a list of objects to be sorted We will sort on favorite \> number, so I wrote a helper function that takes in the object and then returns the favorite number Now let’s wr…

---

_[View the full topic](https://community.thunkable.com/t/get-property-of-object-create-object-with-fields/1671844)._
