Open matt-taylor934 opened 3 years ago
I have seen this issue when a Browser Extension has quotation marks in the details field, Parallels Desktop includes at least one such extension in the app bundle. This results in the output being non-conforming json and the prettifier can't parse it.
My workaround:
sudo ./KnockKnock.app/Contents/MacOS/KnockKnock -whosthere > "$OUTPUT"/KnockKnock/KnockKnock-draft.json
/bin/cat "$OUTPUT"/KnockKnock/KnockKnock-draft.json | /usr/bin/sed -E 's/(""[^"]*)"/\1/' | /usr/bin/sed 's/""/"/g' | jq . > "$OUTPUT"/KnockKnock/KnockKnock.json
/bin/rm "$OUTPUT"/KnockKnock/KnockKnock-draft.json
Please fix!
In v2.3.0 the -pretty flag is failing with the following error when doing a CLI scan: {"ERROR" : "failed to covert output to JSON"}
Running the scan without -pretty and trying to convert the results to JSON afterwards with 'jq' also fails,
Confirmed across various Macs running macOS 11.4 and 11.15.1.