Add getJsonResponse method to AbstractController

## Add getJsonResponse method to AbstractController