Remove the code from finalize method which converted the json to list