Moved JSON parsing from GenericDAO to GenericController