get_json = async (json_source)=> {
if (json_source) {
if (json_source.substr (json_source.length-3) == ".gz") {
return JSON.parse (pako.inflate(await d3.buffer(json_source), { to: 'string' }));
}
return d3.json (json_source);
try {
return d3.json (json_source);
} catch {}
}
try {
return JSON.parse (pako.inflate(await gard_results_file.arrayBuffer(), { to: 'string' }));
} catch {}
return gard_results_file.json();
}