# Returning Objects/Lists from Functions

**URL:** <https://community.thunkable.com/t/returning-objects-lists-from-functions/337096>\
**Category:** Questions about Thunkable X\
**Created:** [November 25, 2019, 4:19pm UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096 "2019-11-25T16:19:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![b.perkins](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/b.perkins/32/50493_2.png) [@b.perkins](https://community.thunkable.com/u/b.perkins)\
**Post date:** [November 25, 2019, 4:19pm UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/1 "2019-11-25T16:19:09Z")

</div>

Hi guys,

I’ve searched the forum and not found anything exactly like this…

In the following example, I cannot return an object from the function, but I can return a list.  
[https://x.thunkable.com/copy/2d4bd61f771a1bef5e3b9dce187058f6](https://x.thunkable.com/copy/2d4bd61f771a1bef5e3b9dce187058f6)

Is this a bug? It seems like a bug. (I’ll be happy to report it, but I just want to check first.)

Thanks!

---

<div class="post-metadata">

**Author:** ![b.perkins](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/b.perkins/32/50493_2.png) [@b.perkins](https://community.thunkable.com/u/b.perkins)\
**Post date:** [November 25, 2019, 4:22pm UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/2 "2019-11-25T16:22:42Z")

</div>

Screenshot for anyone who doesn’t want to open the project…

 ![59](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/b/2b24c4ba834cf95efe67bd6da99927abece79136.png)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 25, 2019, 5:07pm UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/3 "2019-11-25T17:07:01Z")

</div>

Directly can’t, but through a variable

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/8/e842f1f62183d2c2b36b7268cf32b5467e3cec6c.png)

or this

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/7/1725846754f296047d9eeda1cc76abb3285ae16b.png)

or

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/7/37ecf4479ab09ae4f517b2f2990f308abf2db971.png)

---

<div class="post-metadata">

**Author:** ![b.perkins](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/b.perkins/32/50493_2.png) [@b.perkins](https://community.thunkable.com/u/b.perkins)\
**Post date:** [November 25, 2019, 8:21pm UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/4 "2019-11-25T20:21:29Z")

</div>

Thanks for the workaround @actech, but I still think it’s a bug.  
😆

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [November 26, 2019, 9:46am UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/5 "2019-11-26T09:46:03Z")

</div>

I agree. You can write to developers about this bug - [https://github.com/thunkable/thunkable-issues/issues](https://github.com/thunkable/thunkable-issues/issues)

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [November 26, 2019, 6:17pm UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/6 "2019-11-26T18:17:17Z")

</div>

BTW, The bug looks to be slightly more complicated than just returning an object from a function. For example, in your repro app if you just have your function return `'get object from JSON [from Text_Input1 get Text]'`, then it will work correctly.

-Mark

---

<div class="post-metadata">

**Author:** ![b.perkins](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/b.perkins/32/50493_2.png) [@b.perkins](https://community.thunkable.com/u/b.perkins)\
**Post date:** [November 29, 2019, 2:53pm UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/7 "2019-11-29T14:53:50Z")

</div>

> [@Mark](#):
>
> The bug looks to be slightly more complicated

Thanks for looking into it Mark!

---

<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, 11:46am UTC](https://community.thunkable.com/t/returning-objects-lists-from-functions/337096/8 "2024-11-08T11:46:32Z")

</div>


