use spawn for ssh command, rather than exec
add -j/--json option for json output