Java org.springframework.web.servlet.view.json MappingJackson2JsonView fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.servlet.view.json MappingJackson2JsonView fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.servlet.view.json MappingJackson2JsonView.

The text is from its open source code.

Subclass

org.springframework.web.servlet.view.json.MappingJackson2JsonView has subclasses.
Click this link to see all its subclasses.

Constructor

MappingJackson2JsonView()
Construct a new MappingJackson2JsonView using default configuration provided by Jackson2ObjectMapperBuilder and setting the content type to application/json .
MappingJackson2JsonView(ObjectMapper objectMapper)
Construct a new MappingJackson2JsonView using the provided ObjectMapper and setting the content type to application/json .

Method

ObjectMappergetObjectMapper()
Return the ObjectMapper for this view.
voidsetExtractValueFromSingleKeyModel(boolean extractValueFromSingleKeyModel)
Set whether to serialize models containing a single attribute as a map or whether to extract the single value from the model and serialize it directly.
voidsetObjectMapper(ObjectMapper objectMapper)
Set the ObjectMapper for this view.
voidsetPrettyPrint(boolean prettyPrint)
Whether to use the default pretty printer when writing the output.