check json format

This commit is contained in:
Nikolai Petukhov 2024-10-03 23:20:40 +03:00
parent ac6dffa129
commit 1301c145e8

View File

@ -23,7 +23,10 @@ export async function post(path, body) {
console.log("Initial data from API:", res)
const data = JSON.parse(await res.text());
const txt = await res.text();
console.log("Initial text from API:", txt)
const data = JSON.parse(txt);
console.log("Data from API:", data)