title: to read json array from html file and printing the values in servlet
body: <p>I have a JSON array generated from a form</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
          $(function() {
              $('#btn').click(function() {
                  var formData=JSON.stringify($('#sform').serializeObject());
                  // $('#rValues').text(formData);
                  $.get('Partition',"fdata="+formData,function(fJson) {                   
  
                      $.each(fJson, function(key,value) { 
                          if(fJson!=null){
  
                          }
                      });
                  });
                  $("#rValues").show();              
                  return false;
              });
          });
          $.fn.serializeObject = function() {
              var o = {};
              var a = this.serializeArray();
              $.each(a, function () {
                  if (o[this.name] !== undefined) {
                      if (!o[this.name].push) {
                          o[this.name] = [o[this.name]];
                      }
                      o[this.name].push(this.value || '');
                  } else {
                      o[this.name] = this.value || '';
                  }
              });
              return o;
          };
      &lt;/script&gt;
  </code></pre>
  
  <p>i'm trying to read and print the entire form values in Partiton.java(servlet) but not able to do so.</p>
  
  <pre><code> String data = request.getParameter("fdata");
      System.out.println(data);
  </code></pre>