1👍
✅
Looks like you are making an http request to fetch the .json file and then you are logging the entire response that you are getting back to the console. So the ‘data’ field is the actual file contents, and the entire object you are logging to console is the whole http request being made.
[Update]
Since you are now logging response.data which is a string, parse the string into an object like so:
var json = JSON.parse(response.data);
0👍
I think you need console data
from response.
For example:
let res = await axios.get(
'https://...'
);
console.log(res.data)
Source:stackexchange.com