Sending a JSON object over TCP with Java Sending a JSON object over TCP with Java json json

Sending a JSON object over TCP with Java


I think the server is expecting newline at the end of the message. Try to use your original code with write() and add \n at the end to confirm this.