# \[Solved\] How should I get a value from this .JSON?

**URL:** https://community.thunkable.com/t/solved-how-should-i-get-a-value-from-this-json/395792
**Category:** Questions about Thunkable X
**Tags:** solved, webapi, json
**Created:** [January 7, 2020, 1:09pm UTC](https://community.thunkable.com/t/solved-how-should-i-get-a-value-from-this-json/395792 "2020-01-07T13:09:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [January 7, 2020, 1:09pm UTC](https://community.thunkable.com/t/solved-how-should-i-get-a-value-from-this-json/395792/1 "2020-01-07T13:09:09Z")

</div>

Hi everyone!

I am using an API, which returns this .JSON response -

`[{"place_id":"6092977","licence":"https:\/\/locationiq.com\/attribution","osm_type":"node","osm_id":"664161333","boundingbox":["21.0779469","21.3979469","81.4736833","81.7936833"],"lat":"21.2379469","lon":"81.6336833","display_name":"Raipur, Chhattisgarh, 493332, India","class":"place","type":"city","importance":0.97376296369788,"icon":"https:\/\/locationiq.org\/static\/images\/mapicons\/poi_place_city.p.20.png"}]`

> **Formatted .JSON**
>
> ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/6/36b074ab4aff475590232360097e0af89a3f514a.png)
> 
> * * *

From which, I would like to get the `lat`, `long` & `display_name`.

I have tried this, but I am getting undefined -

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/1/51f220996beaec3ffa4ebbd36a093b5ac6301d03.png)

I must be doing something wrong - if you have any ideas, they will help me a lot 🙂

Thanks! 😊

---

<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: [January 7, 2020, 4:04pm UTC](https://community.thunkable.com/t/solved-how-should-i-get-a-value-from-this-json/395792/2 "2020-01-07T16:04:21Z")

</div>

Hi,

check response, status and error. If all good convert response to object

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

---

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [January 7, 2020, 6:03pm UTC](https://community.thunkable.com/t/solved-how-should-i-get-a-value-from-this-json/395792/3 "2020-01-07T18:03:51Z")

</div>

### Thanks a lot, @actech! 👋

As always, you solved my big problem 😄

Thank you so much! 😊

---

<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/solved-how-should-i-get-a-value-from-this-json/395792/4 "2024-11-08T11:46:05Z")

</div>


