# Help with JSON Data

**URL:** https://community.thunkable.com/t/help-with-json-data/2197435
**Category:** Questions about Thunkable X
**Created:** [December 30, 2022, 8:44am UTC](https://community.thunkable.com/t/help-with-json-data/2197435 "2022-12-30T08:44:09Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![ronnie](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ronnie/32/121539_2.png) [@ronnie](https://community.thunkable.com/u/ronnie)
#### Post date: [December 30, 2022, 8:44am UTC](https://community.thunkable.com/t/help-with-json-data/2197435/1 "2022-12-30T08:44:09Z")

</div>

I’m stuck on how to work with JSON in this specific instance. I have a JSON file that contains data for locations and a numerical value associated with that location. The file looks something like this:

```auto
[{"lat":63,"lng":-126,"number":58},{"lat":63,"lng":-125,"number":58},{"lat":63,"lng":-124,"number":58}...]

```

Using this block:

 ![Screenshot 2022-12-29 at 11.41.08 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/2/329377a4b5fba4d11cca9f00479d7737c3a1b0d9.png)  
I do, in fact, get the number 58 returned back. It works as expected. However, my JSON file could contain hundreds of points to reference. How do I load all of these into a list so that I can process them? Essentially, I am working on plotting stuff on a map, but I need to get all of my coordinates loaded into a list and I am lost on how to make that happen. I want to create a list that contains the lat, lng, and number for each point loaded from my JSON. I just don’t know where to begin.

---

<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: [December 30, 2022, 12:18pm UTC](https://community.thunkable.com/t/help-with-json-data/2197435/2 "2022-12-30T12:18:30Z")

</div>

@ronnie try something like that and create 3 lists for lat, lng, and number

 ![latt](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5e48b0ededd333396c29a229a2b5d4d7cf4255fc.png)

---

<div class="post-metadata">

### Author: ![ronnie](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ronnie/32/121539_2.png) [@ronnie](https://community.thunkable.com/u/ronnie)
#### Post date: [December 30, 2022, 6:28pm UTC](https://community.thunkable.com/t/help-with-json-data/2197435/3 "2022-12-30T18:28:16Z")

</div>

I saw that in my searches. I’m not sure that’s what I need to do, but I’ll try it and see what happens!

---

<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: [December 30, 2022, 6:38pm UTC](https://community.thunkable.com/t/help-with-json-data/2197435/4 "2022-12-30T18:38:53Z")

</div>

Looks good! I think you could also do get property of object j (where j is a variable).

---

<div class="post-metadata">

### Author: ![ronnie](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ronnie/32/121539_2.png) [@ronnie](https://community.thunkable.com/u/ronnie)
#### Post date: [December 30, 2022, 7:07pm UTC](https://community.thunkable.com/t/help-with-json-data/2197435/5 "2022-12-30T19:07:34Z")

</div>

Essentially, what I am trying to do is get all of the coordinates from my JSON loaded into the app. I need to store them so that I can iterate through them to draw boxes on the map. Like this:

 ![IMG_6867](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c11912cbac021660a9916c267b5a03d910dc35e.jpeg)

Those boxes are what I have manually input into the map’s `addPolygon` element. I think the list option may be the way to go. I can build my lists of lat, lng, and number to use in building a list of objects to create the polygons. I’m not sure if @ioannis or your way would be a more efficient process, @tatiang, but I am making some progress with the lists!

---

<div class="post-metadata">

### Author: ![ronnie](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ronnie/32/121539_2.png) [@ronnie](https://community.thunkable.com/u/ronnie)
#### Post date: [December 30, 2022, 7:36pm UTC](https://community.thunkable.com/t/help-with-json-data/2197435/6 "2022-12-30T19:36:33Z")

</div>

I think I am going to abandon this idea. Just getting the JSON parsed is running like molasses. The JSON file has 12398 items and the app takes forever to process them all. I have a web file that already plots them on a map. I wanted to try getting rid of any web pages I could because I have a feeling the web viewer is causing some issues with errors in the app. I can’t confirm that, but I was trying to rule that out.

Thanks for the help guys! It may be valuable knowledge to me in the future!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [March 30, 2023, 7:36pm UTC](https://community.thunkable.com/t/help-with-json-data/2197435/7 "2023-03-30T19:36:54Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
