tcp client with json data