Skip to content

Welshman Docs / @welshman/lib / fetchJson

Function: fetchJson() ​

fetchJson(url, opts): Promise<any>

Defined in: packages/lib/src/Tools.ts:1165

Fetches JSON from URL with options

Parameters ​

url ​

string

URL to fetch from

opts ​

FetchOpts = {}

Fetch options

Returns ​

Promise<any>

Promise of parsed JSON response