import { readSrcAsJSON } from "https://deno.land/x/shader_canvas@v1.1.1/core/common/src_readers.ts";
This function is a "reader". If the src string is a JSON array, then it returns a promise that resolves to the parsed contents.
Otherwise the src string is rejected.