Cursor implements JsonableInterface

Allow to return the Cursor directly from the controller and get a JSON response.
Without this the cursor get serialized using `__toString` and even if the response has the exact same content, it's content-type is `text/html` instead of `application/json`