fetchJSON_example
Script
v5
Fork
1
2
3
4
5
import
{
fetch
}
from
"https://esm.town/v/std/fetch?v=4"
;
import
{
fetchJSON
}
from
"https://esm.town/v/vladimyr/fetchJSON"
;
console
.
log
(
await
fetchJSON
(
"https://pie.dev/get"
)
)
;
console
.
log
(
await
fetchJSON
(
"https://pie.dev/get"
,
{
fetch
}
)
)
;