# How to display results of Get JSON From Object block?

**URL:** https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653
**Category:** Questions about Thunkable X
**Created:** [April 18, 2021, 8:48am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653 "2021-04-18T08:48:47Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [April 18, 2021, 8:48am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/1 "2021-04-18T08:48:47Z")

</div>

Do any of you know how to display the results using the “get JSON from object” or something? Because it isn’t working, and my label isn’t showing the results, it’s showing null. Can any of you please help??? thank you

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [April 18, 2021, 10:57am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/2 "2021-04-18T10:57:59Z")

</div>

It is better to make a new post and ask this question and provide screen shot of your coding block so that other can see what’s wrong with your code.

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [April 19, 2021, 8:46am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/3 "2021-04-19T08:46:38Z")

</div>

Hi there,

You should be able to print JSON directly onto a label.

How are you creating this object in your project?

---

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [April 19, 2021, 9:11am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/4 "2021-04-19T09:11:53Z")

</div>

Hello! I’m trying to create an OCR project, using OCR space: [Free OCR API](https://ocr.space/ocrapi) . This api is known to work with thunkable, if you search up ocr in thunkable community, you will see others talking about it! I’m trying to make the label display the text that this ocr detects. May I ask you to create an ocr api and see what properties my json should gather? My code looks like this right now:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/4/94e27d58efc44bc9b09fbc52b19b4ca5c6381da4.png)

Also, the result IS coming, but it’s in JSON format. I need it to be JUST the words that the ocr detects, not the entire json, so this is what I tried. But it shows ‘null’. I know it’s a lot to ask, and I honestly need a solution today😅… Do you think you could help @jane ? Thank you so much!

---

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [April 19, 2021, 9:12am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/5 "2021-04-19T09:12:44Z")

</div>

Hello! I suppose that’s better, but since I already found a topic discussing the same, I just posted it here. Thanks for the advice anyway!

---

<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 19, 2021, 11:04am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/6 "2021-04-19T11:04:39Z")

</div>

Are you getting the right text, just in the Json format?

---

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [April 19, 2021, 11:16am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/7 "2021-04-19T11:16:44Z")

</div>

Yes!  
I need the text to be concentrated on the text detected, not the entire response

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [April 19, 2021, 11:18am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/8 "2021-04-19T11:18:46Z")

</div>

If you are debugging an issue with getting properties from a JSON response, I would recommend printing your entire JSON response on a Label first. If you have an error with this, you need to revise your Web API call. If you can successfully print the entire JSON response, then you need to make sure you are getting the correct properties of your response.

You can see an example of this narrowing down of a response here: [Reverse Geocoding App - Get Location from Latitude/Longitude](https://community.thunkable.com/t/reverse-geocoding-app-get-location-from-latitude-longitude/82343)

---

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [April 19, 2021, 11:30am UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/9 "2021-04-19T11:30:40Z")

</div>

Thank you! I’ve actually tried printing the entire JSON response, and it worked! Unfortunately, I’ve already seen this community link, and inputted the correct properties. I’m afraid this is a thunkable error! Is there anything you may know about this? Once again, thank you so much for your responses, all of you! It helps!❤

---

<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 19, 2021, 4:27pm UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/10 "2021-04-19T16:27:50Z")

</div>

Because most APIs return JSON, you need to get the object from JSON (from the green “response” block) rather than trying to generate JSON from the object (it’s not an object).

Also, the “ParsedResults” or “ParsedText” value may be empty (null). In fact, the [sample URL](https://api.ocr.space/parse/imageurl?apikey=helloworld&url=http://i.imgur.com/fwxooMv.png) in their documentation just returned a null ParsedResults value for me (“Timed out waiting for results”).

You’re going to have to consider what types of responses you might get – including error messages from the API – and plan your blocks accordingly.

If you go to the 17:43 mark in my [tutorial video](https://community.thunkable.com/t/api-json-tutorial-video/1140575), you’ll see how I use the “get object from JSON” block.

---

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [April 20, 2021, 3:25pm UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/11 "2021-04-20T15:25:37Z")

</div>

Thank you so much for your response!! It’s really helpful!! I will definitely try and check this out. Once again thank you so much for your help!

---

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [May 5, 2021, 1:25pm UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/12 "2021-05-05T13:25:57Z")

</div>

Your video worked! But thunkable, the platform itself actually has this runtime error that ruins it 😭. Thank you anyway though, to everyone in this conversation!! Especially @tatiang !

---

<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: [May 5, 2021, 3:23pm UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/13 "2021-05-05T15:23:26Z")

</div>

Thunkable apps will crash if you try to get object properties that don’t exist (or from non-objects). If you’re getting a crash, it’s probably a problem with your blocks. Post them and the JSON if you want some help debugging.

---

<div class="post-metadata">

### Author: ![anikathescientist](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anikathescientist](https://community.thunkable.com/u/anikathescientist)
#### Post date: [May 7, 2021, 2:15pm UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/14 "2021-05-07T14:15:25Z")

</div>

Alright! I’ll send them shortly☺️

---

<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:25pm UTC](https://community.thunkable.com/t/how-to-display-results-of-get-json-from-object-block/1232653/15 "2024-11-08T13:25:07Z")

</div>


