ob.contents_array = gson.fromJson(ob.file_contents, ArrayList.class);
Instead of a raw ArrayList.class
you should use a TypeToken
to tell Gson the actual runtime type of the ArrayList's type parameter:
ob.contents_array = gson.fromJson(ob.file_contents,
new TypeToken<ArrayList<tweet>>(){}.getType());