package com.indeed.proctor.pipet.core.web;

import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

/**
 * View for converting to JSON with Jackson 1.
 *
 * Use this View for all API responses. That guarantees that responses are consistently formatted.
 *
 * The JsonResponse should be the only object in the Model.
 *
 * This is guaranteed to use Jackson 1, which fixes a few problems related to JSON annotations.
 */
public class JsonResponseView extends MappingJackson2JsonView {
    public JsonResponseView() {
        super();
        setExtractValueFromSingleKeyModel(true);
        setPrettyPrint(true);
    }
}

package com.indeed.proctor.pipet.core.web;

import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

/**
 * View for converting to JSON with Jackson 2.
 *
 * Use this View for all API responses. That guarantees that responses are consistently formatted.
 *
 * The JsonResponse should be the only object in the Model.
 *
 * This is guaranteed to use Jackson 2, which fixes a few problems related to JSON annotations.
 */
public class JsonResponseView extends MappingJackson2JsonView {
    public JsonResponseView() {
        super();
        setExtractValueFromSingleKeyModel(true);
        setPrettyPrint(true);
    }
}

upgrade jackson - update javadoc.