getJson method
Fetches a URL and tries to parse the response as JSON.
Implementation
Future<InspectionResult> getJson(String path) async {
return request(
'GET',
path,
options: const DevRequestOptions(
headers: {'Accept': 'application/json'},
isJson: true,
),
);
}