public static ObjectMapper getLenientMapper()
    {
        ObjectMapper lenientMapper = getCommonMapper();
        lenientMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        lenientMapper.configure(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES, false);
        lenientMapper.configure(DeserializationFeature.FAIL_ON_READING_DUP_TREE_KEY, false);
        return lenientMapper;
    }
public static ObjectMapper getLenientMapper ( ) { ObjectMapper lenientMapper = getCommonMapper ( ) ; lenientMapper . configure ( DeserializationFeature . FAIL_ON_UNKNOWN_PROPERTIES , false ) ; lenientMapper . configure ( DeserializationFeature . FAIL_ON_NULL_FOR_PRIMITIVES , false ) ; lenientMapper . configure ( DeserializationFeature . FAIL_ON_READING_DUP_TREE_KEY , false ) ; return lenientMapper ; }
@return an ObjectMapper which ignores unknown properties, uses defaults in case of null for primitive, and accepts duplicates