Skeudenn / main/services/http-json / getJson
Function: getJson() ​
getJson(
url,options,source):Promise<unknown>
Defined in: src/main/services/http-json.ts:95
GETs url and parses its JSON body. Throws "<source>: …" (in the interface language, shown to the user as is) when the service is unreachable, times out or answers an error. An error response whose JSON carries a Comic Vine status_code is returned instead, for the caller to interpret.
Parameters ​
url ​
string
options ​
source ​
string
Returns ​
Promise<unknown>