Can logstash take in a Json Object straight from a java application

Is there a way to configure Logstash to take data straight from a Java application without the need to write it to a file?

Sure, there are many other input plugins. http, tcp, and unix would all be possibilities.

Could you possible provide an example for this? I am a bit new to logstash and not sure where to start in terms of this problem.