title: Receive the InputStream and get the values from json string in Jersey
body: <p>How can I received JSON string from the <code>InputStream</code> in Jersey, which was sent from <code>HttpURlConenction</code> in android, and how can I get the values of it to store them into  database table? </p>
  
  <pre><code>{
   "latitude":93.86898451,
    "longitude":30.66561387,
    "time":"24.04.2015 11:11:05",
    "route":4
  }
  </code></pre>
  
  <p>Jersey receiver class:</p>
  
  <pre><code>@Path("data")
  public class Receiver {
  
  
  
      @POST
      @Consumes({MediaType.APPLICATION_JSON, "text/json"})
      public void storeDate() {
          BufferedReader in
             = new BufferedReader(new InputStreamReader(process.getInputStream()));
  
  
      }
  
  }
  </code></pre>