How do I work with JSON?

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?

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

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”). I tried Web-API Get response but the return is undefined.
The project url is 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”
}
]

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!

@actech @Fernando_Duarte @Extremus_Data_Protec @User81

We’ve recently updated our object block 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

1 Like

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?

Here’s the FB Data
image

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

I’m going to close this topic since the most recent post has already been responded to here.

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

1 Like