title: java.lang.ClassCastException: org.json.simple.JSONArray cannot be cast to org.json.JSONArray
body: <p>I need to read a <code>JsonArray</code> data from a file (on an SD card) and store it into a SQLite database.</p>
  
  <p>but I am getting a <code>java.lang.ClassCastException: org.json.simple.JSONArray cannot be cast to org.json.JSONArray</code> exception while parsing data to <code>JsonArray</code>.</p>
  
  <p>Data in the file is very huge, the whole data can not be stored in a single String or String Buffer or String Builder.</p>
  
  <p>Here is my code.</p>
  
  <pre><code>FileReader fileReader = new FileReader(file_path);
  Object obj = jsonParser.parse(fileReader);
  JSONArray jsonArray = (JSONArray) obj; // Exception.
  </code></pre>
  
  <p>Please help..</p>