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

com.structurizr.io.json.AbstractJsonReader Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package com.structurizr.io.json;

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

class AbstractJsonReader {

    ObjectMapper createObjectMapper() {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
        objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        objectMapper.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true);

        return objectMapper;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy