when running snyk test --json with --all-sub-projects we get an list of scan results objects.
The change introduced here is to check whether the scan.json start with a [, and if so parse the file as a list of scan results object, and if not parse it straight as a results object.
when running
snyk test --json
with--all-sub-projects
we get an list of scan results objects.The change introduced here is to check whether the
scan.json
start with a[
, and if so parse the file as a list of scan results object, and if not parse it straight as a results object.previously we were assuming it will be:
now we accept this too:
vs.