Without us doing anything, our DTO objects are magically converted to JSON by Spring. This is thanks to Spring's support for data binding with Jackson. The Jackson JSON processor provides a fast and lightweight library for mapping Java objects to JSON objects.