Good. I am using this API: https://api.randomuser.me/
The problem is that when I make a console log, of the DATA of this api, this is the skeleton it has:
The data is inside "0: Object".
To be able to access inside the code, I have to save it inside a variable:
For example:
var JsonAPI = res.data.results.0.username
(The one that is like 0 is the one that I don't know what to put.
I think I have explained myself wrong, but if it is not understood, tell me and I will try to improve it.
Cheers
with
res.data.results[0].username
should work