I want to make an HTTP request with Java, but I'm new to Java and have no clue how. I've had a look at a few tutorials, but I was unable to understand anything. I want to send JSON data and also receive JSON data. In Python it would look like this:
response = json.load(urllib.request.urlopen(urllib.request.Request('http://localhost:8765', requestJson)))
Any help would be much appreciated.