# How do I work with JSON?

**URL:** https://community.thunkable.com/t/how-do-i-work-with-json/14498
**Category:** Questions about Thunkable X
**Created:** [January 15, 2018, 6:14pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498 "2018-01-15T18:14:56Z")
**Posts on this page:** 9
**Page:** 1

<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 15, 2018, 6:14pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/1 "2018-01-15T18:14:56Z")

</div>

Hi, please show an example of using the “get object from JSON” block with a text block. I tried to specify {“text”: “text”} and {text: test} and {} but the object is not created and the screen is not created, which indicates an error. In what format should I specify a string to create a JSON object?

---

<div class="post-metadata">

### Author: ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)
#### Post date: [April 14, 2018, 8:41pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/2 "2018-04-14T20:41:09Z")

</div>

Hi there,

the generate-JSON-from-object component helps me to transfer a variable, which is a list (=array), to another screen, by storing it in the local storage.

It would be nice, if I could link the "create list from… /create list from item… / create list with… " components directly to this.

Because of this lacking linking, I have to declare a variable before I link this variable to the generate-JSON-from-object component, which could be seen as a workaround.

thanks, keep doing your awesome development, I really enjoy it!

cheers,  
User81

---

<div class="post-metadata">

### Author: ![Fernando\_Duarte](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@Fernando\_Duarte](https://community.thunkable.com/u/Fernando_Duarte)
#### Post date: [January 22, 2019, 3:33pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/3 "2019-01-22T15:33:42Z")

</div>

Hello Everybody,  
How are you doing?

I need get the values from properties “nome” and “codigo” the following JSON (url “[https://parallelum.com.br/fipe/api/v1/carros/marcas](https://parallelum.com.br/fipe/api/v1/carros/marcas)”). I tried Web-API Get response but the return is undefined.  
The project url is [https://x.thunkable.com/copy/046889c0210506904503e79dd0ad39a1](https://x.thunkable.com/copy/046889c0210506904503e79dd0ad39a1), I really appreciate your help.

[  
{  
“nome”: “Acura”,  
“codigo”: “1”  
},  
{  
“nome”: “Agrale”,  
“codigo”: “2”  
},  
{  
“nome”: “Alfa Romeo”,  
“codigo”: “3”  
},  
{  
“nome”: “AM Gen”,  
“codigo”: “4”  
},  
{  
“nome”: “Asia Motors”,  
“codigo”: “5”  
},  
{  
“nome”: “ASTON MARTIN”,  
“codigo”: “189”  
},  
{  
“nome”: “Audi”,  
“codigo”: “6”  
},  
{  
“nome”: “Baby”,  
“codigo”: “207”  
},  
{  
“nome”: “BMW”,  
“codigo”: “7”  
},  
{  
“nome”: “BRM”,  
“codigo”: “8”  
},  
{  
“nome”: “Bugre”,  
“codigo”: “123”  
},  
{  
“nome”: “Cadillac”,  
“codigo”: “10”  
},  
{  
“nome”: “CBT Jipe”,  
“codigo”: “11”  
},  
{  
“nome”: “CHANA”,  
“codigo”: “136”  
},  
{  
“nome”: “CHANGAN”,  
“codigo”: “182”  
},  
{  
“nome”: “CHERY”,  
“codigo”: “161”  
},  
{  
“nome”: “Chrysler”,  
“codigo”: “12”  
},  
{  
“nome”: “Citroën”,  
“codigo”: “13”  
},  
{  
“nome”: “Cross Lander”,  
“codigo”: “14”  
},  
{  
“nome”: “Daewoo”,  
“codigo”: “15”  
},  
{  
“nome”: “Daihatsu”,  
“codigo”: “16”  
},  
{  
“nome”: “Dodge”,  
“codigo”: “17”  
},  
{  
“nome”: “EFFA”,  
“codigo”: “147”  
},  
{  
“nome”: “Engesa”,  
“codigo”: “18”  
},  
{  
“nome”: “Envemo”,  
“codigo”: “19”  
},  
{  
“nome”: “Ferrari”,  
“codigo”: “20”  
},  
{  
“nome”: “Fiat”,  
“codigo”: “21”  
},  
{  
“nome”: “Fibravan”,  
“codigo”: “149”  
},  
{  
“nome”: “Ford”,  
“codigo”: “22”  
},  
{  
“nome”: “FOTON”,  
“codigo”: “190”  
},  
{  
“nome”: “Fyber”,  
“codigo”: “170”  
},  
{  
“nome”: “GEELY”,  
“codigo”: “199”  
},  
{  
“nome”: “GM - Chevrolet”,  
“codigo”: “23”  
},  
{  
“nome”: “GREAT WALL”,  
“codigo”: “153”  
},  
{  
“nome”: “Gurgel”,  
“codigo”: “24”  
},  
{  
“nome”: “HAFEI”,  
“codigo”: “152”  
},  
{  
“nome”: “Honda”,  
“codigo”: “25”  
},  
{  
“nome”: “Hyundai”,  
“codigo”: “26”  
},  
{  
“nome”: “Isuzu”,  
“codigo”: “27”  
},  
{  
“nome”: “IVECO”,  
“codigo”: “208”  
},  
{  
“nome”: “JAC”,  
“codigo”: “177”  
},  
{  
“nome”: “Jaguar”,  
“codigo”: “28”  
},  
{  
“nome”: “Jeep”,  
“codigo”: “29”  
},  
{  
“nome”: “JINBEI”,  
“codigo”: “154”  
},  
{  
“nome”: “JPX”,  
“codigo”: “30”  
},  
{  
“nome”: “Kia Motors”,  
“codigo”: “31”  
},  
{  
“nome”: “Lada”,  
“codigo”: “32”  
},  
{  
“nome”: “LAMBORGHINI”,  
“codigo”: “171”  
},  
{  
“nome”: “Land Rover”,  
“codigo”: “33”  
},  
{  
“nome”: “Lexus”,  
“codigo”: “34”  
},  
{  
“nome”: “LIFAN”,  
“codigo”: “168”  
},  
{  
“nome”: “LOBINI”,  
“codigo”: “127”  
},  
{  
“nome”: “Lotus”,  
“codigo”: “35”  
},  
{  
“nome”: “Mahindra”,  
“codigo”: “140”  
},  
{  
“nome”: “Maserati”,  
“codigo”: “36”  
},  
{  
“nome”: “Matra”,  
“codigo”: “37”  
},  
{  
“nome”: “Mazda”,  
“codigo”: “38”  
},  
{  
“nome”: “Mclaren”,  
“codigo”: “211”  
},  
{  
“nome”: “Mercedes-Benz”,  
“codigo”: “39”  
},  
{  
“nome”: “Mercury”,  
“codigo”: “40”  
},  
{  
“nome”: “MG”,  
“codigo”: “167”  
},  
{  
“nome”: “MINI”,  
“codigo”: “156”  
},  
{  
“nome”: “Mitsubishi”,  
“codigo”: “41”  
},  
{  
“nome”: “Miura”,  
“codigo”: “42”  
},  
{  
“nome”: “Nissan”,  
“codigo”: “43”  
},  
{  
“nome”: “Peugeot”,  
“codigo”: “44”  
},  
{  
“nome”: “Plymouth”,  
“codigo”: “45”  
},  
{  
“nome”: “Pontiac”,  
“codigo”: “46”  
},  
{  
“nome”: “Porsche”,  
“codigo”: “47”  
},  
{  
“nome”: “RAM”,  
“codigo”: “185”  
},  
{  
“nome”: “RELY”,  
“codigo”: “186”  
},  
{  
“nome”: “Renault”,  
“codigo”: “48”  
},  
{  
“nome”: “Rolls-Royce”,  
“codigo”: “195”  
},  
{  
“nome”: “Rover”,  
“codigo”: “49”  
},  
{  
“nome”: “Saab”,  
“codigo”: “50”  
},  
{  
“nome”: “Saturn”,  
“codigo”: “51”  
},  
{  
“nome”: “Seat”,  
“codigo”: “52”  
},  
{  
“nome”: “SHINERAY”,  
“codigo”: “183”  
},  
{  
“nome”: “smart”,  
“codigo”: “157”  
},  
{  
“nome”: “SSANGYONG”,  
“codigo”: “125”  
},  
{  
“nome”: “Subaru”,  
“codigo”: “54”  
},  
{  
“nome”: “Suzuki”,  
“codigo”: “55”  
},  
{  
“nome”: “TAC”,  
“codigo”: “165”  
},  
{  
“nome”: “Toyota”,  
“codigo”: “56”  
},  
{  
“nome”: “Troller”,  
“codigo”: “57”  
},  
{  
“nome”: “Volvo”,  
“codigo”: “58”  
},  
{  
“nome”: “VW - VolksWagen”,  
“codigo”: “59”  
},  
{  
“nome”: “Wake”,  
“codigo”: “163”  
},  
{  
“nome”: “Walk”,  
“codigo”: “120”  
}  
]

---

<div class="post-metadata">

### Author: ![Extremus\_Data\_Protec](https://avatars.discourse-cdn.com/v4/letter/e/8c91f0/32.png) [@Extremus\_Data\_Protec](https://community.thunkable.com/u/Extremus_Data_Protec)
#### Post date: [February 25, 2019, 7:02pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/4 "2019-02-25T19:02:25Z")

</div>

staff thanks in advance for the help

My problem is this.

I’m doing a login screen that works perfectly on the android, but when I test it on IOS it does not work. Finding out what makes it not work is the JSON function. With JSON it does not work on IOs, if I remove JSON it works fine on IOS. Can someone help me? Am I doing something wrong or is this a BUG for IOS JSON? Thanks!

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

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [August 11, 2020, 10:12pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/5 "2020-08-11T22:12:23Z")

</div>

@actech @Fernando_Duarte @Extremus_Data_Protec @User81

We’ve recently updated our [object block](https://docs.thunkable.com/objects) documentation, so hopefully this is easier to follow now.

Can you take a look at let us know if your specific use case is covered here or not?

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: [August 12, 2020, 9:14am UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/6 "2020-08-12T09:14:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)
#### Post date: [January 24, 2021, 7:19pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/7 "2021-01-24T19:19:33Z")

</div>

I know this is an older thread, but I think I’m supposed to post here as opposed to making a new thread…  
Anyway, I’m doing something similar but not getting a result at all, anyone care to help me find my mistake and provide a clear path to a proper result?

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

Here’s the FB Data  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/8/7882fd5cb88484484d8c465f6af2cb5083fa1941.png)

I can get one line to work, but when I use the for each item j I get nothing.

---

<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: [January 24, 2021, 7:49pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/8 "2021-01-24T19:49:05Z")

</div>

I’m going to close this topic since the most recent post has already been responded to [here](http://community.thunkable.com/t/nested-for-each-item-j-in-list-is-very-slow/1060267).

@overshield, feel free to post the same info in that topic so we can keep the conversation going there.

---

<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: [January 24, 2021, 7:49pm UTC](https://community.thunkable.com/t/how-do-i-work-with-json/14498/9 "2021-01-24T19:49:12Z")

</div>


