@Test public void shouldNotSerializeNullBeanPropertiesByDefault() throws JsonProcessingException { ObjectMapper objectMapper = factory.createObjectMapper(); String actual = objectMapper.writeValueAsString(new Pair("couch", null)); assertEquals("{\"name\":\"couch\"}", actual); }
public synchronized ObjectMapper createObjectMapper() { ObjectMapper result = instance; if (result == null) { result = new ObjectMapper(); applyDefaultConfiguration(result); instance = result; } return result; }
StdObjectMapperFactory implements ObjectMapperFactory { public synchronized ObjectMapper createObjectMapper() { ObjectMapper result = instance; if (result == null) { result = new ObjectMapper(); applyDefaultConfiguration(result); instance = result; } return result; } }
StdObjectMapperFactory implements ObjectMapperFactory { public synchronized ObjectMapper createObjectMapper() { ObjectMapper result = instance; if (result == null) { result = new ObjectMapper(); applyDefaultConfiguration(result); instance = result; } return result; }  }
StdObjectMapperFactory implements ObjectMapperFactory { public synchronized ObjectMapper createObjectMapper() { ObjectMapper result = instance; if (result == null) { result = new ObjectMapper(); applyDefaultConfiguration(result); instance = result; } return result; }  synchronized ObjectMapper createObjectMapper(); ObjectMapper createObjectMapper(CouchDbConnector connector); synchronized void setObjectMapper(ObjectMapper om); void setWriteDatesAsTimestamps(boolean b); }
StdObjectMapperFactory implements ObjectMapperFactory { public synchronized ObjectMapper createObjectMapper() { ObjectMapper result = instance; if (result == null) { result = new ObjectMapper(); applyDefaultConfiguration(result); instance = result; } return result; }  synchronized ObjectMapper createObjectMapper(); ObjectMapper createObjectMapper(CouchDbConnector connector); synchronized void setObjectMapper(ObjectMapper om); void setWriteDatesAsTimestamps(boolean b);  }