Function asJSONInternal

Used internally to send a GET request to the specified URL and retrieve the response as a JSON object.

  • Parameters

    • url: string

      The full URL to send the request to.

    • options: ReqOptions = null
    • retries: number = 3

      The amount of retries to attempt before erroring. Default is 3.

    Returns Promise<any>