I'm encountering some difficulties while trying to interact with my json file. I am using the fetch API to retrieve my json file but, unfortunately, when I log the response to the console, I don't see any data returned. Instead, what appears is a sort of header response.
"use strict";
fetch('https://www.jasonbase.com/things/wAe3.json')
.then((data) => {
console.log(data);
})
.catch((err) => {
if(err) console.log(err);
});
It would be ideal to be able to extract each property from the following json file:
{
"completed-works": {
"example1": {
"title": "Example A",
"date": "1-6-18",
"time": "8 : 23 PM",
"preview": "Liquorice lollipop sugar plum pie dragée chocolate..."
}
}
}
Appreciate any help in advance.