Changed the activity class to notify the adapter and convert to JSON properly