title: Please check the code and give me why there is this error?
body: <p>this is my servlet code</p>
  
  <pre><code>List&lt;Group&gt; list=  dao.findgroup(user);
          JSONObject json=(JSONObject) JSONSerializer.toJSON(list);
          ServletResponse response=ActionContext.getServletResponse();
          response.setContentType("text/JSON");
          PrintWriter out=response.getWriter(); 
          out.println(json);
          out.close();
  </code></pre>
  
  <p>//this is my jquery code</p>
  
  <pre><code>$.get("viewgroup.process",function(data){
          var use=$.parseJSON(data);
          $(use).each(function(i,v)
          {
  
          var det="&lt;tr&gt;&lt;td&gt;"+v.value+"&lt;/td&gt;&lt;td&gt;"+v.description+"&lt;/td&gt;&lt;td&gt;"+v.code+"&lt;/td&gt;&lt;td&gt;"+v.status+"&lt;/td&gt;&lt;td&gt;&lt;a href='#'&gt;reset code&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a href='#'&gt;change status&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;";
          $(det).appendTo("#tablebody");
          });
  </code></pre>
  
  <p>Now my problem is when i am sending this request and getting a list as json object,and when I use method parseJSON it gives me error:</p>
  
  <p><code>SyntaxError: JSON.parse: unexpected character</code></p>
  
  <p>Can any one tell me why this error is there?</p>