# \[Solved\] Get property from JSON object

**URL:** https://community.thunkable.com/t/solved-get-property-from-json-object/1246987
**Category:** Questions about Thunkable X
**Tags:** solved, beginner
**Created:** [April 26, 2021, 6:38pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987 "2021-04-26T18:38:06Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [April 26, 2021, 6:38pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/1 "2021-04-26T18:38:06Z")

</div>

Hello!

I am new to this today. I started working on this tutorial. It grabs "advice from a site and becomes a random advise generator.

[![](https://img.youtube.com/vi/fjdoBDQG6y8/maxresdefault.jpg "How to use the Thunkable Web API and Text-To-Speech: Advice App [Snap to Place]") ](https://www.youtube.com/watch?v=fjdoBDQG6y8)

However, because there is no text to speech component to add to my app, I am not having luck. I have found the “speech” blocks, but It just returns “null” guess I am not using them correctly. Any ideas?

 ![Screen Shot 2021-04-26 at 1.33.44 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/8/f8b67752770ab51e2a2c3a5de27e7c165e2cbbf1.png)

Thanks

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [April 26, 2021, 6:43pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/2 "2021-04-26T18:43:33Z")

</div>

I’d try changing a label to the value of ‘app variable advise’ to confirm that you’re getting what you’d expect going into the “say” block. I’d also set other labels to status and error, in case there’s something not right there.  
Debugging APIs can be tricky, and its not clear if the problem is what the API returns, not anything to do with the speech block.

I’d also try JUST doing text to speech with some static text, to make sure that’s working. Currently, playing recorded sounds in iOS is broken. I don’t know if that extends to the text to speech block or not, so it’d be important to make sure that text to speech is working in a simple case, before trying to debug the complex case.

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [April 26, 2021, 6:57pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/3 "2021-04-26T18:57:47Z")

</div>

you are right. When I set this to change a table, it simply prints null. Strange. I worked this out earlier on the older setup and It worked fine. switched accounts and selected the new drag and drop and now it will not parse the data correctly?

 ![Screen Shot 2021-04-26 at 1.56.59 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9badc576117546a732762181114170d101da5c26.png)  
I am new to this so I am sure I am doing something wrong… I will keep at it.

thanks again for all your help today 🙂

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [April 26, 2021, 8:05pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/4 "2021-04-26T20:05:53Z")

</div>

So what is the full response, error, and status?

---

<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: [April 26, 2021, 8:13pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/5 "2021-04-26T20:13:04Z")

</div>

You need to spell the property name as “ **advice** ” since the JSON response uses that spelling:

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

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [April 26, 2021, 8:18pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/6 "2021-04-26T20:18:45Z")

</div>

good eye, @tatiang

---

<div class="post-metadata">

### Author: ![goutham](https://avatars.discourse-cdn.com/v4/letter/g/22d042/32.png) [@goutham](https://community.thunkable.com/u/goutham)
#### Post date: [April 26, 2021, 9:07pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/7 "2021-04-26T21:07:45Z")

</div>

🙌🙂

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [April 26, 2021, 9:12pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/8 "2021-04-26T21:12:34Z")

</div>

Spelling For the Win!

Ok, I dumped it so I will rebuild and post my results 😳

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [April 26, 2021, 9:26pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/9 "2021-04-26T21:26:19Z")

</div>

The spelling was the issue. Thanks so much for your support in my learning!

---

<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, 1:22pm UTC](https://community.thunkable.com/t/solved-get-property-from-json-object/1246987/10 "2024-11-08T13:22:54Z")

</div>


