getJSON method
Does a GET request and returns a decoded JSON.
Implementation
Future<dynamic> getJSON(
String path, {
Map<String, String>? headers,
Credential? authorization,
Map<String, Object?>? parameters,
}) async {
return get(
path,
headers: headers,
authorization: authorization,
parameters: parameters,
).then((r) => _jsonDecodeResponse(r));
}