CycloneDX / sbom-utility

Utility that provides an API platform for validating, querying and managing BOM data
Apache License 2.0
97 stars 14 forks source link

Feature Request - Generate JSON with entire structure #76

Open celek opened 8 months ago

celek commented 8 months ago

I would like to parse the output of the license list summary and process it Right now summary only supports csv,txt and md I want to be able to get a JSON file that contains the following structure

> sbom-utility license list -i sbom.json --summary --format json
[{
    "usage-policy": "allow",
    "license-type":  "id",
    "license":  "MIT",    
    "resource-name": "@ace/otc-components-react-3.0.14.tgz",
    "bom-ref":  "",
    "bom-location": "components"
},
{
    "usage-policy": "UNDEFINED",
    "license-type":  "id",
    "license":  "Requires Review",        
    "resource-name": "@ace/otc-components-react-3.0.11.tgz",
    "bom-ref":  "",
    "bom-location": "components"
}]