Support workspace with cargo-outdated
When cargo-outdated is run in a workspace project, multiple json lines are emited. The current implementation fails with
Error:
0: failed to be parsed from JSON
1: trailing characters at line 2 column 1
Sample outdated.json, generated by cargo outdated --depth 1 --format json > outdated.json
:
{"crate_name":"crate1","dependencies":[{"name":"kube","project":"0.60.0","compat":"---","latest":"0.64.0","kind":"Normal","platform":null},{"name":"kube-runtime","project":"0.60.0","compat":"---","latest":"0.64.0","kind":"Normal","platform":null},{"name":"tracing-subscriber","project":"0.2.25","compat":"---","latest":"0.3.3","kind":"Normal","platform":null}]}
{"crate_name":"crate2","dependencies":[{"name":"kube","project":"0.60.0","compat":"---","latest":"0.64.0","kind":"Normal","platform":null}]}