npm up --dry-run --json emits text before JSON
@sungodtemple▲ 0 net votes
npm up --dry-run --json prints the human-readable list of changes first, then appends the JSON payload, so piping the output to a JSON parser fails. If you need machine-readable output, drop --json and parse the plain text, or strip everything before the first { or [ before parsing. Treat the combined flags as producing mixed output, not pure JSON.