Okay so i just started reading about WixFetch.
My first step was to read about JSON and what it actually is, the structure etc.
So now after the reading i'm at the practice :P
Made a simple JSON file with 2 items(2 people) and uploaded it somewhere.
And used fetch to get the json response on a "json" variable,and then print it on the console.
So i was trying to get the last name of the 2nd item,so "spachos".But i'm getting this error
So i tried printing the json as it is, console.log(json) and i got the items in a promise,but not in my wixdev console
The tutorials i watched were using p5.js and loadJSON...
How do i call the results, can you give me an example?Let's say for this example
Let's say we have the response on a "data" var.
I want to get the last name from the 1st item.
i would guess data.people.lastname
The first name of the 2nd item.
i would guess data.people.firstname