There are few PayLoad converters in Temporal.
For all type of objects, it is calling JacksonJsonPayloadConverter. whether it is a custom Java object, primitives, or Strings.
JacksonJsonPayloadConverter
when GsonJsonPayloadConverter will be called?
GsonJsonPayloadConverter
which one will be the recommended converter among that.
There is no “recommended” converter. The default is JacksonJsonPayloadConverter as was requested by the community. Before that the gson one was used, so it is included for users that prefer it for backward compatibility.
Okay, why Jackson was requested? Any specific reason for that?
I don’t remember specifics. But we were getting constant requests to switch to Jackson before the switch. Since we switched no one requested Gson.