use json for communication.