File outputFile = new File(outputDirectory, finalName + "-changes.json");
JsonFactory factory = new JsonFactory();
try {
JsonGenerator generator = factory.createJsonGenerator(outputFile, JsonEncoding.UTF8);
generator.setPrettyPrinter(new DefaultPrettyPrinter());
try {
generator.writeStartObject();
generator.writeStringField("previousVersion", previousVersion);
generator.writeFieldName("dependencies");
writeDependenciesDelta(addedDeps, removedDeps, updatedDeps, unchangedDeps, generator);