Date values are changed after converting payload to JSON in Red Hat Fuse
Issue
- Date values are incorrect after marshaling to JSON using Jackson library.
<json
disableFeatures="FAIL_ON_UNKNOWN_PROPERTIES,FAIL_ON_EMPTY_BEANS,WRITE_DATES_AS_TIMESTAMPS"
id="JSON" include="NON_EMPTY" library="Jackson" unmarshalTypeName="foo.bar.MyClass"/>
<jaxb contextPath="foo.bar" id="XML" prettyPrint="false"/>
<when id="_when5">
<simple>${exchangeProperty.convertToJson} == "true"</simple>
<marshal id="_marshal1" ref="JSON"/>
<log message = "converted json body, ${body}"/>
</when>
Environment
- Red Hat Fuse
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.