Added two methods for generic json response in class RestControllerBase