i.e. it outputs a separate JSON Object literal for each License, separated by a new line.
Would it not make more sense to output on JSON Object literal containing all the licenses, by adding [ ] brackets around them and separating them with commas i.e.:
The output is valid NDJSON. That is the format chosen by Yarn Berry (link), and I don't think this plugin should diverge. See yarn workspaces list --json as an example.
When setting the output to JSON with the
--json
flag, the output looks like the followingi.e. it outputs a separate JSON Object literal for each License, separated by a new line.
Would it not make more sense to output on JSON Object literal containing all the licenses, by adding
[ ]
brackets around them and separating them with commas i.e.: