Home > widget-integration > InstantSearchAPI > requestJson
InstantSearchAPI.requestJson() method
Execute a JSON request with shared error handling.
Signature:
protected requestJson<T>(url: string, init?: RequestInit): Promise<T>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
url |
string | |
|
init |
RequestInit |
(Optional) |
Returns:
Promise<T>