check parse

This commit is contained in:
ed barz 2022-05-15 00:20:34 +02:00
parent 5f312721b9
commit 6034258c2f
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -47,7 +47,8 @@ const jsonurl = "https://ed.brz9.dev/proj/map/asset/json/db.json"
async function getJson(url) { async function getJson(url) {
let obj = await fetch(url) let obj = await fetch(url)
let txt = await obj.text() let txt = await obj.text()
return txt let json = JSON.parse(txt)
return json
} }
let db2 = getJson(jsonurl) let db2 = getJson(jsonurl)