# How to read json file

**URL:** <https://community.thunkable.com/t/how-to-read-json-file/185049>\
**Category:** Questions about Thunkable X\
**Tags:** question\
**Created:** [August 17, 2019, 2:14pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049 "2019-08-17T14:14:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![point](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/point/32/113590_2.png) [@point](https://community.thunkable.com/u/point)\
**Post date:** [August 17, 2019, 2:14pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/1 "2019-08-17T14:14:23Z")

</div>

I have a json file and I need my application to read it, which means I need to get the value of a certain tag from the file.  
How can I do this?  
Sorry for the bad translation😅

---

<div class="post-metadata">

**Author:** ![renren66](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@renren66](https://community.thunkable.com/u/renren66)\
**Post date:** [August 17, 2019, 3:08pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/2 "2019-08-17T15:08:08Z")

</div>

You can use the “get object from JSON” block from the Object section.  
Can you specify what action you want to achieve with the JSON?

---

<div class="post-metadata">

**Author:** ![point](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/point/32/113590_2.png) [@point](https://community.thunkable.com/u/point)\
**Post date:** [August 17, 2019, 3:20pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/3 "2019-08-17T15:20:25Z")

</div>

I created a translation (json) file for my application and I want to translate my application with it

---

<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:** [August 17, 2019, 3:45pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/4 "2019-08-17T15:45:38Z")

</div>

Hi there,

There are lots of Community posts with advice on parsing (reading) a JSON response!  
[Here is a Community Post.](http://community.thunkable.com/t/reverse-geocoding-app-get-location-from-latitude-longitude/82343)  
[Here is a video tutorial.](https://www.youtube.com/watch?v=rUnWhwHHmO4)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![point](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/point/32/113590_2.png) [@point](https://community.thunkable.com/u/point)\
**Post date:** [August 18, 2019, 5:53pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/5 "2019-08-18T17:53:40Z")

</div>

But for me it’s a file and it’s in the application, so how can you read it without using an internet connection?

---

<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:** [August 19, 2019, 9:29am UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/6 "2019-08-19T09:29:06Z")

</div>

You can use the same blocks to parse a JSON file, regardless of whether it was acquired through an API or uploaded to the app in advance.

---

<div class="post-metadata">

**Author:** ![point](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/point/32/113590_2.png) [@point](https://community.thunkable.com/u/point)\
**Post date:** [August 19, 2019, 2:49pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/7 "2019-08-19T14:49:08Z")

</div>

Thanks now it works for me. But I have another problem. The text for me is variable, I want the keyboard text to be the “get property”  
(Look at the picture)

 ![2019-08-19_17-41-12](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b717cc6a8cb319e66791b91ac03939207b697619.png)

---

<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:** [August 20, 2019, 9:39am UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/8 "2019-08-20T09:39:53Z")

</div>

If you want to set the Text Input text to the property you’re retrieving from your JSON, you can use the ‘From Text\_Input set Text to’ block:  
 ![settextTI](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/5499b580f573f3788a34e6762723cdd98ff073eb.png)

You can also use the ‘from Text\_Input get Text’ block with the ‘get object from JSON’ block.

---

<div class="post-metadata">

**Author:** ![point](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/point/32/113590_2.png) [@point](https://community.thunkable.com/u/point)\
**Post date:** [August 20, 2019, 10:05am UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/9 "2019-08-20T10:05:58Z")

</div>

> [@point](#):
>
> get property

Thanks for fixing it, but now I can’t connect get property to of object

 ![2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/9/59290fb0a3d1a524383ed53258394f2a59cb8da6.png)

---

<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:11pm UTC](https://community.thunkable.com/t/how-to-read-json-file/185049/10 "2024-11-08T12:11:49Z")

</div>


