Add tested code for sending and receiving JSON.