public void readFile(File file) {
		if (file != null) {
			try {
				showSarif(file.getName(), io.readSarif(file));
			}
			catch (JsonSyntaxException | IOException e) {
				Msg.showError(this, tool.getActiveWindow(), "File parse error",
					"Invalid Sarif File");
			}
		}
	}
A {@link ProgramPlugin} for reading in sarif files
Ghidra/Features/Sarif/src/main/java/sarif/SarifPlugin.java