Communicating to server in java to java
<p>I know how to communicate with a server using a PHP script with JSON, but if the server was written in Java how would I communicate with the server using my Java program.</p>

<p>Would it be the same or is there some easier way that would exclude JSON?</p>

<p>The way I'm used to doing it is using a post request and then encoding/decoding in JSON</p>

<p>it is not a webserver</p>
