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

com.katalon.kata.helper.JsonHelper Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.katalon.kata.helper;

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

public class JsonHelper {

    private static class ObjectMapperHolder{
        private static final ObjectMapper INSTANCE = createInstance();

        private static ObjectMapper createInstance() {
            ObjectMapper mapper = new ObjectMapper();
            mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
            return mapper;
        }
    }

    public static ObjectMapper objectMapper() {
        return ObjectMapperHolder.INSTANCE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy