Namespaces
getJSON
Call Signature
function getJSON<T>(url: string): Promise<T>;Defined in: http/index.d.ts:23
Downloads the content from the specified URL as a string and returns its JSON.parse representation.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | The URL to request from. |
Returns
Promise<T>
Call Signature
function getJSON<T>(options: HttpRequestOptions): Promise<T>;Defined in: http/index.d.ts:29
Downloads the content from the specified URL as a string and returns its JSON.parse representation.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type | Description |
|---|---|---|
options | HttpRequestOptions | An object that specifies various request options. |
Returns
Promise<T>