if (res.data.type === "application/json") {
let result = await res.data.text();
result = JSON.parse(reader);
}
if (res.data.type === "application/json") {
const reader = new FileReader();
reader.readAsText(res.data, "utf-8");
reader.onload = () => {
let result = JSON.parse(reader.result)
};
}