Skip to content

Function: fetch_json() ​

fetch_json(url): Promise<any>

Defined in: api/rust-fetch.d.ts:972

Fetch a URL and parse the body as JSON (whatever its Content-Type). An empty body resolves to null.

Parameters ​

url ​

string

Returns ​

Promise<any>

Released under the MIT or Apache-2.0 license.