fetchJson async url options let response await this fetch url options

1
2
3
4
5
6
fetchJson = async (url, options) => {
let response = await this.fetch(url, options);
let data = null;
let json = await response.json().then(data => data);
return data;
}