Skip to main content

@mapgear/geoapps-core > HttpClient > GetJson

HttpClient.GetJson() method

Request a remote resource with XmlHttpRequest GET-method

Signature:
GetJson<T>(url: string, params?: object): Promise<T>;

Parameters

ParameterTypeDescription
urlstringUrl to retrieve
paramsobject(Optional) Query parameters that should be added to the url
Returns:

Promise<T>