public void addDependenciesFromJson(URL jsonFile) {
        Objects.requireNonNull(jsonFile, "Dependency JSON file is null, probably because the file could not be found.");
        try (InputStream stream = jsonFile.openConnection().getInputStream()) {
            parseDependenciesFromJson(Node.parse(stream));
        } catch (IOException e) {
            throw new UncheckedIOException("Error loading dependencies from "
                    + jsonFile + ": " + e.getMessage(), e);
        }
    }
Loads predefined dependencies from a JSON file (for example, to track
known dependencies used by generated code at runtime).

<pre>
{@code
DependencyTracker tracker = new DependencyTracker();
tracker.addDependenciesFromJson(getClass().getResource("some-file.json"));
}
</pre>

@param jsonFile URL location of the JSON file.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/DependencyTracker.java