last day (15 days later) » 

08:00
1
A: Unable to access nested object from JSON data

AidOnline01You are setting json string to randomDataJSON state variable, and trying use JSON string as an object. You can try to console.log(randomDataJSON) to confirm my suspicions. I think you should not convert your data object to json in first place, so setRandomDataJSON(JSON.stringify(userData, null, 2...

you should not set string because you have to parse reverse in order to use as object
@BobWhite, in post question he is using JSON.stringify, which is converting object to string. Axios on the other hand is automatically converting json response to javascript object. So I believe there is no need for either JSON.parse or JSON.stringify
yep, but it should be that way. json.stringify should be removed. I think the request is waiting for json response. just save the response to state as an array then use it.
@BobWhite, well, isn't that what I have said in my answer?
yep complete the answer with a complete code just to clarify to @james
08:00
@BobWhite, ok, good point
There is chat now. Wow) Do you think I should add in my answer some suggestions as to use async function instead of promise, or to export default function intead of two rows export. Or maybe just pure answer to a problem is better?
I think is okay your current awnser
*answer
if you add more information could be difficult to the user
just aim to the real problem
Yep, agree. Thanks
where are you?
08:08
I am from Ukraine
Wow, you live at interesting place on map. Right between South and North America. I am finding this fact somewhat amusing.
wao so far away
I from Nicaragua
I speak spanish
Ukraine is a beautiful country
And I never heard anyone spoke spanish :D
what language do you speak ?
08:11
Thanks. I see really big lakes on the map, or should I call them seas 0_0?
Big chunk of water right in the middle of your country
it just a lake
Ukrainian|Russian
I live near to the lake xD
Isn't it HUGE?
Russian wao
it is
so big
I have heard speak Russian language is so difficult
08:13
How long would you swim from one side to another on a boat?
I never though Russian is hard to learn. Although it's really hard to speak properly I think, as people who comes from other countries and live here for like 10 years still often have awful accent
I wonder do I have same accent in English
I think I could not speak Russian
Time and practice will made anyone speak any language :D)
@AidOnline01 wao is difficult to answer but it might take along time
*How long would you swim from one side to another on a boat?
Hours/Days/Months :)?
Just trying to imagine this
My English is not so good I hope someday speak as native speaker
08:18
Mine either. Reading is on good level, writting is somewhat worse, and speaking is... nevermind)
could be in 1 hour to cross the small lake
the big lake could take around 4 or 5 hours
i.imgur.com/4qfsZdo.png - I saw this one, and was astonished
yep I have had some interviews in english
Uf. Hard
Just hard
yep 4 hours could take to cross
08:21
Well, 4 hours is not as big as I had imagined
Huge, but not as much
yep my country is small
alike you country is bigger
*your
A popular phrase will do there: "Size don't matter"
:)
I will go back to work, good luck)
I will go to sleep
Good night 😴
I have a nice day bro
do you wanna be in touch?

last day (15 days later) »