You also can use [fetch](<https://developer.mozill...
# javascript
i
You also can use [fetch](https://developer.mozilla.org/fr/docs/Web/API/Fetch_API)
Copy code
fun <O> getJson(url: String): Promise<O> =
    window.fetch(url).toJson()