title: Convert from JSONArray to ArrayList<CustomObject> - Android
body: <p>I converted an ArrayList to an JSONArray. How can I convert it back?</p>
  
  <p>The final result must be an ArrayList. Thank you in advance.</p>
  
  <p>EDIT:</p>
  
  <p>This is how I convert the ArrayList to JSONArray:</p>
  
  <pre><code>String string_object= new Gson().toJson(MyArrayList&lt;OBJECT&gt;);
  JSONArray myjsonarray = new JSONArray(string_object);
  </code></pre>