Use JSON-serializable messages for communication