title: (restful) parse json with JSONValue.parse java error
body: <pre><code>public String GetAllProjectByNameFileExcept(String NameFile)
      {
          JSONObject output_json = new JSONObject();
          ArrayList&lt;String&gt; List = new ArrayList&lt;String&gt;();
          DB db = null;
          try 
          {
              db = MONGODB.GetMongoDB();
              DBCollection collLocal = db.getCollection("local");
              BasicDBObject objek_db = new BasicDBObject();
              BasicDBObject objek_db2 = new BasicDBObject();
              objek_db.put("$ne", NameFile);
              objek_db2.put("_id",objek_db);
              DBCursor cursor = collLocal.find(objek_db2);
              while (cursor.hasNext()) {
                  List.add(cursor.next().get("_id").toString());
              }
  
              if (List.size() == 0)
              {
                  output_json.put("code", 0);
                  output_json.put("message", "Not Found");
                  output_json.put("data", null);
              }else
              {
                  output_json.put("code", 1);
                  output_json.put("message", "Success");
                  output_json.put("data", List);
              }
          } 
          catch (Exception e) 
          {
              output_json.put("code", -1);
              output_json.put("message",e.toString());
          }
  
          return output_json.toString();  
      }
  </code></pre>
  
  <p>i have function GetAllProjectByNameFileExcept return value :</p>
  
  <pre><code>{"code":1,"data":[A11.2011.05900.pdf, A11.2011.05930.pdf, A11.2011.05931.pdf, A11.2011.05932.pdf],"message":"Success"}
  </code></pre>
  
  <p>type data [A11.2011.05900.pdf,...,n.pdf] is ArrayList String <br/>
  i called this function in other function :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>String list = this.GetAllProjectByNameFileExcept(NameFile);
  output_json.put("result", list);</code></pre>
  </div>
  </div>
  </p>
  
  <p>i was checked output :</p>
  
  <pre><code>{"result":"{\"code\":1,\"data\":[A11.2011.05900.pdf, A11.2011.05930.pdf, A11.2011.05931.pdf, A11.2011.05932.pdf],\"message\":\"Success\"}"}
  </code></pre>
  
  <p>but if <em>list</em> parse with this code:</p>
  
  <pre><code>JSONObject FileData = (JSONObject) JSONValue.parse(list);
  </code></pre>
  
  <p>always getting errors</p>
  
  <pre><code>java.lang.Error: Error: could not match input
  org.json.simple.JSONValue.parse(Unknown Source)
  service.CrawLocal.PlagiarismCheck(CrawLocal.java:276)
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  </code></pre>
  
  <p>code to parse in other function sucess i think errors because ArrayList String type data.. what should I do?</p>