Package ai.mindconnect.workflow.jackson
Class JacksonJsonMapper
java.lang.Object
ai.mindconnect.workflow.jackson.JacksonJsonMapper
- All Implemented Interfaces:
JsonMapper
JsonMapper implementation backed by Jackson's ObjectMapper.
Use WorkflowObjectMapperFactory.create() to obtain a correctly
configured mapper (with StepData polymorphism set up via mixins),
then pass it to this class.
Example:
ObjectMapper mapper = WorkflowObjectMapperFactory.create();
JacksonJsonMapper jsonMapper = new JacksonJsonMapper(mapper);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapper<T> Tparse(InputStream is, Class<T> type) <T> T<T> List<T> parseList(InputStream is, Class<T> itemType) <T> List<T> <T> TreadFromPath(Path path, Class<T> type) writeToPath(Object object, Path path)
-
Constructor Details
-
JacksonJsonMapper
public JacksonJsonMapper()
-
-
Method Details
-
stringify
- Specified by:
stringifyin interfaceJsonMapper
-
parse
- Specified by:
parsein interfaceJsonMapper
-
parseList
- Specified by:
parseListin interfaceJsonMapper
-
parse
-
parseList
-
readFromPath
-
writeToPath
-
getMapper
public com.fasterxml.jackson.databind.ObjectMapper getMapper()
-