All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cortical.retina.rest.JsonUtil Maven / Gradle / Ivy

Go to download

cortical.io's java client - a simple java http client which simplifies communication between any java application and the Retina server using the Retina's REST API.

There is a newer version: 1.0.2
Show newest version
/*******************************************************************************
 * Copyright (c) cortical.io GmbH. All rights reserved.
 *  
 * This software is confidential and proprietary information.
 * You shall use it only in accordance with the terms of the
 * license agreement you entered into with cortical.io GmbH.
 ******************************************************************************/
package io.cortical.retina.rest;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;


/** Generated. **/
public class JsonUtil {
    public static ObjectMapper mapper;
    
    static {
        mapper = new ObjectMapper();
        mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
    }
    
    /** Allows retrieving an instance of {@link ObjectMapper}. **/
    public static ObjectMapper getJsonMapper() {
        return mapper;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy