spring-framework / org.springframework.web.servlet.view.json

Package org.springframework.web.servlet.view.json

Types

MappingJackson2JsonView

open class MappingJackson2JsonView : AbstractJackson2View

Spring MVC View that renders JSON content by serializing the model for the current request using Jackson 2's ObjectMapper.

By default, the entire contents of the model map (with the exception of framework-specific classes) will be encoded as JSON. If the model contains only one key, you can have it extracted encoded as JSON alone via #setExtractValueFromSingleKeyModel.

The default constructor uses the default configuration provided by Jackson2ObjectMapperBuilder.

Compatible with Jackson 2.6 and higher, as of Spring 4.3.