I am creating a generic JSON API to handle any object with as little additional coding per object required. Here is the BaseController from which all other controllers (EmployeeController, ProductController, etc.) inherit:I am creating a generic JSON API to handle any