Added kwargs for json dumps and loads in send_json and recv_json