title: How to convert this json String to normal java arraylist using gson
body: <p>I tried to convert following JSON string into Array and got following error:</p>
  
  <blockquote>
    <p>Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError:
    org/apache/commons/logging/LogFactory at
    net.sf.json.AbstractJSON.(AbstractJSON.java:54) at
    net.sf.json.util.CycleDetectionStrategy.(CycleDetect‌​ionStrategy.java:36)
    at net.sf.json.JsonConfig.(JsonConfig.java:65) at
    net.sf.json.JSONSerializer.toJSON(JSONSerializer.java:84)</p>
  </blockquote>
  
  <p><strong>JSON:</strong></p>
  
  <pre><code>[  
     {  
        "file_name":"1.xml",
        "file_ext":"application/octet-stream",
        "sr_no":"0.1",
        "status":"Checked ",
        "rev":"1",
        "locking":"0"
     },
     {  
        "file_name":"2.xml",
        "file_ext":"json/octet-stream",
        "sr_no":"0.2",
        "status":"Not Checked ",
        "rev":"2",
        "locking":"1"
     },
     {  
        "file_name":"3.xml",
        "file_ext":"application/json-stream",
        "sr_no":"0.3",
        "status":"Checked ",
        "rev":"1",
        "locking":"3"
     },
     {  
        "file_name":"4.xml",
        "file_ext":"application/octet-stream",
        "sr_no":"0.4",
        "status":"Checked ",
        "rev":"0.4",
        "locking":"4"
     }
  ]
  </code></pre>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>JSONArray nameArray = (JSONArray) JSONSerializer.toJSON(output);
  System.out.println(nameArray.size());
  for(Object js : nameArray)
  {
      JSONObject json = (JSONObject) js;
      System.out.println("File_Name :" +json.get("file_name"));                                         
  }
  </code></pre>