lightning-p2p-cli (src-tauri/src/cli.rs) prints human text. Scripts want structured output: --json should emit one JSON object on stdout (ticket/label/size for send; output_path/size/route/download_ms for receive).
Acceptance: send --json and receive --json emit valid JSON only on stdout; docs in --help; unit test for the shape.
lightning-p2p-cli(src-tauri/src/cli.rs) prints human text. Scripts want structured output:--jsonshould emit one JSON object on stdout (ticket/label/size for send; output_path/size/route/download_ms for receive).Acceptance:
send --jsonandreceive --jsonemit valid JSON only on stdout; docs in --help; unit test for the shape.