Read your messages in the command line (vd needs to be installed first)

termux-sms-list -l 40  | jq '[.[] | {number:.number,body:.body}]' | vd -f json

For more on jq, see their tutorial. Its man page contains full reference.