# Issues handling JSON objects when received as message from webviewer

**URL:** https://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776
**Category:** Questions about Thunkable X
**Tags:** webviewer, bug, javascript, json
**Created:** [December 26, 2020, 6:14pm UTC](https://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776 "2020-12-26T18:14:01Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [December 26, 2020, 6:14pm UTC](https://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776/1 "2020-12-26T18:14:01Z")

</div>

Is anyone familiar with receiving objects from the webviewer? I have no issue working with a text only response.

When I receive an object I am unable to work with it **when using the on phone companion app** but when using the live preview on the design screen there is no issue and all works as expected  
I have posted about this here.

> <https://github.com/thunkable/thunkable-issues/issues/793#issue-774782758>
>
> Thanks so much for filing an issue or feature request! Please fill out the follo…wing (wherever relevant):
> 
> The more info, the faster we will be able to address it!
> 
> \### Platform
> IOS companion 
> 
> \### Issue - Object blocks arent working for objects received as messages through the webveiwer on companion or downloaded apps. 
> 
> I am able to receive and work with objects using the live preview in chrome on both my phone and computer. 
> 
> Here are two strings with projects showing this
> 
> https://community.thunkable.com/t/how-can-i-add-a-copy-button/1040333/10?u=nradjt74jatz
> https://community.thunkable.com/t/password-tracker/1041697/4?u=nradjt74jatz
> 
> The issue is that I am doing stuff with data in JS and then passing it back to the webviewer. The webviewer will receive plain text fine but when sending an object, the object blocks don’t handle it correctly and print 
> 
> “\[object object\]”
> 
> the live preview in chrome works fine though. 
> 
> !\[3C246EE1-2704-40AA-8E75-898B6FAAF169\](https://user-images.githubusercontent.com/70493366/103141385-9bb69a00-46c1-11eb-8893-67c2ede41785.png)
> 
> \### Steps to Reproduce
> 1. put a webviewer in an app. 
> 2. direct webviewer to jaredgibb.github.io/PasswordCheckR.html
> 2. use blocks to post a message to webviewer "poopyPants"
> 3.use blocks to receive a message from the webviewer
> 
> \### Project Link
> https://x.thunkable.com/projectPage/5fe49ea50264310011d03008
> 
> \### Expected Behavior
> I expect to see the json (and be able to Use it with the object blocks) on in the companion app and downloaded apps as it is displayed (and accessed) in the live preview on chrome. 
> 
> \### Actual Behavior
> "\[object, object\]"
> 
> !\[050324D9-BF89-4851-B1E3-AEF512A543F9\](https://user-images.githubusercontent.com/70493366/103154558-10431480-4766-11eb-8c14-b75fce61a789.png)
> 
> !\[83A9C218-468A-483F-854A-B9D4C20F7F33\](https://user-images.githubusercontent.com/70493366/103154559-10dbab00-4766-11eb-924d-eebcc4eb049b.png)

Tagging advanced users as it seems to be an advanced issue: @paulmw @domhnallohanlon @Steven @actech

Hopefully someone can point out where I went wrong or can verify the issue.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [December 31, 2020, 5:21pm UTC](https://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776/2 "2020-12-31T17:21:48Z")

</div>

Simply to revive this. Is there anyone else who can confirm the issue I describe here?

---

<div class="post-metadata">

### Author: ![Steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Steven](https://community.thunkable.com/u/Steven)
#### Post date: [January 7, 2021, 9:48pm UTC](https://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776/3 "2021-01-07T21:48:54Z")

</div>

Hi!

I responded to the issue you linked and I’m not yet able to reproduce. I don’t believe you posted the github issue (if you did I apologize!) so can you please share a link to a project that isn’t working for you? You can send it to me privately or post it here, whichever you prefer. It doesn’t have to be a project you’re working on if you’re able to make a small example project demonstrating the issue that would actually be preferable.

Thanks!

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [January 8, 2021, 12:16pm UTC](https://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776/4 "2021-01-08T12:16:45Z")

</div>

[![]( " - YouTube") ](https://www.youtube.com/watch?v=3KdrRYW1BMA)

[https://x.thunkable.com/projectPage/5fe49ea50264310011d03008](https://x.thunkable.com/projectPage/5fe49ea50264310011d03008)

The project linked above is the one from the video. Thank you for trying to figure this out.

---

<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, 12:19pm UTC](https://community.thunkable.com/t/issues-handling-json-objects-when-received-as-message-from-webviewer/1041776/5 "2024-11-08T12:19:16Z")

</div>


