getJSON method
      
Future
getJSON(
    
- HttpClient httpClient,
- String path, {
- bool fullPath = false,
- Credential? authorization,
- Map<String, String?> ? parameters,
- String? accept,
- OnCachedResponse? onStaleResponse,
- Duration? staleResponseDelay,
Does a GET request and decodes response to JSON.
- See requestURL documentation.
Implementation
Future<dynamic> getJSON(HttpClient httpClient, String path,
    {bool fullPath = false,
    Credential? authorization,
    Map<String, String?>? parameters,
    String? accept,
    OnCachedResponse? onStaleResponse,
    Duration? staleResponseDelay}) async {
  return get(httpClient, path,
          fullPath: fullPath,
          authorization: authorization,
          parameters: parameters,
          accept: accept,
          onStaleResponse: onStaleResponse,
          staleResponseDelay: staleResponseDelay)
      .then((r) => r.json);
}