title: get value separately from json object in java servlet
body: <p>this is my javascript code to send json object to servlet</p>
  
  <pre><code>username = "Nash";
  password = "619here";
  type = "all";
  data = '{ "username": "' + username + '", "password": "' + password + '", "type": "' + type + '" }';
  request = JSON.parse(data);
  
  $.getJSON(url, request, function (response) {
      $("#result").append("&lt;h1&gt;Success&lt;/h1&gt;");
      $.each(response.vehicle, function (no, vehicle) {
  
          $.each(vehicle, function (key, value) {
  
              $("#result").append("&lt;h2&gt;" + key + " : " + value + "&lt;/h2&gt;");
  
          });
  
          $("#result").append("&lt;br&gt;");
      });
  
  })
  </code></pre>
  
  <p>I want read json object from java servlet and get data separately. like this</p>
  
  <pre><code>String username = username from json object
  String password = password from json object
  String type = type from json object
  </code></pre>
  
  <p>I'm using json-lib-2.4-jdk15.jar
  please help me..</p>