I’m getting an error “code: -22, TX decode failed” with the following:
zcash/src/zcash-cli zcrawjoinsplit "$rawtx" '{}' "{\"$addr\":1.709}" 1.709 0
where
$rawtx=
zcash/src/zcash-cli createrawtransaction '[{"txid":"$txid","vout":0}]' '{}'
and $txid and $addr are long and correct (no \n's or excess "'s).