apiserver.core.json.ApiObjectMapper.java Source code

Java tutorial

Introduction

Here is the source code for apiserver.core.json.ApiObjectMapper.java

Source

package apiserver.core.json;

/*******************************************************************************
 Copyright (c) 2013 Mike Nimer.
    
 This file is part of ApiServer Project.
    
 The ApiServer Project is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
    
 The ApiServer Project is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
    
 You should have received a copy of the GNU General Public License
 along with the ApiServer Project.  If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * User: mikenimer
 * Date: 10/28/13
 */
public class ApiObjectMapper extends ObjectMapper {

    public ApiObjectMapper() {
        super();
        //this.configure(SerializationFeature.WRAP_ROOT_VALUE, true);
        //this.setSerializationInclusion(JsonInclude.Include.NON_NULL);
    }
}