title: Issue with JSON parser for android, which works well for java
body: <p>I have the following json parsing code which works fine when tested as a java application. But on using it with in an android platform and running , returned the following  error</p>
  
  <p>"Unexpected token END OF FILE at position 0"</p>
  
  <p>Here is my code </p>
  
  <pre><code>public boolean parseJSON(String content)  {
  
      boolean retvalue=false;
      String jsonString=null;
      JSONParser parser=new JSONParser();
      Object obj;
      try {
          System.out.println("in the parse json");
          obj = parser.parse(content);
          JSONArray array=(JSONArray)obj;
          JSONObject obj2=(JSONObject)array.get(0);
          jsonString=(String) obj2.get("user_id");
          System.out.println("in the parse json  "+jsonString);
      } catch (Exception e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  
  
      if (null != jsonString) {
          retvalue = true;
      }
      return retvalue;
  
  }
  </code></pre>
  
  <p>The input string for the method is the following</p>
  
  <p>[{"user_id":"1","username":"arvind","password":"somu","firstname":"Arvind somu","accountNumber":"1234567","lastname":"","address":"","email":"sample@gmail.com"}]</p>
  
  <p>I have got the value  1  printed, when tried with java, but no idea why this issue is coming with android. Can   body suggest what is wrong with the code.The parser I am using is json-simple1.1.1</p>