We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3b7af commit 54b3e3eCopy full SHA for 54b3e3e
src/main/java/org/cyclonedx/generators/json/BomJsonGenerator.java
@@ -119,6 +119,10 @@ public String toJsonString() throws GeneratorException {
119
return toJson(bom, true);
120
}
121
122
+ public String toJsonString(boolean prettyPrint) throws GeneratorException {
123
+ return toJson(bom, prettyPrint);
124
+ }
125
+
126
/**
127
* Creates a text representation of a CycloneDX BoM Document. This method calls {@link #toJsonString()} and will return
128
* an empty string if {@link #toJsonString()} throws an exception. It's preferred to call {@link #toJsonString()}
0 commit comments