Silex Api to return JSON