support json kwargs on send/recv_json

closes #496