### Verify latest release - [x] I verified that the issue exists in the latest pnpm release ### pnpm version _No response_ ### Which area(s) of pnpm are affected? (leave empty if unsure) CLI ### Link to the code that reproduces this issue or a replay of the bug _No response_ ### Reproduction steps run `pnpm ls -r --json --filter non-existing` ### Describe the Bug output is empty ### Expected Behavior but I'm asking for `--json` so it should print an empty array instead ### Which Node.js version are you using? v20.18.3 ### Which operating systems have you used? - [x] macOS - [ ] Windows - [ ] Linux ### If your OS is a Linux based, which one it is? (Include the version if relevant) _No response_