How do I return a view from a spring controller using an aja

I make an ajax request using jquery, this calls the following spring controller:@RequestMapping(value = “/dialogController”, method = RequestMethod.POST)public String dialogController(Model...

Slim JSON Outputs

I am using the Slim framework with PHP to create a RESTful API for my app. However, I assumed that the framework would have some way of creating easier JSON outputs rather than just exit($jsonEncodedVariable);....