09-08-2017 05:21 PM
we developed a custom snap to parse EDI 835 data on Java. puzzle is how to map Java object on mapper snap. when we add a mapper snap next to EDI parser, Input schema on mapper is blank. But when I add a copy snap in between EDI Parser custom snap and mapper, am able to see the input schema in mapper.
10-02-2017 08:45 PM
import com.fasterxml.jackson.databind.ObjectMapper;
The org.codehaus.jackson
-package version is from an older version of Jackson. The com.fasterxml.jackson
-package version is the right one. See java - org.codehaus.jackson versus com.fasterxml.jackson.core - Stack Overflow for more.
The implementation that is injected is SnapObjectMapper
, which extends com.fasterxml.jackson.databind.ObjectMapper
. It enables some Jackson serialization features by default, as well as some custom serializers for Dates/Times/DateTimes.