Can i use jackson and xstream serializers for same event across mutiple services

i have 2 spring boot micro-services core, web:

The core service reacts to some event (EmployeeCreatedEvent) which is triggered by web.
The core services is using jackson serializer to serialize commands, queries, events and messages whereas the web service is using xstream serializer.
i am getting below error in core:

Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character (’<’ (code 60)): expected a valid value (JSON String, Number, Array, Object or token ‘null’, ‘true’ or ‘false’)

i am using below properties (jackson for core and default for web):

axon.serializer.general = jackson/default
axon.serializer.events = jackson/default
axon.serializer.messages = jackson/default

can some suggest whether it is ok to use different serializer for same event in different services.

Hi @Rohit_Singh, I believe I answered this same question on stackoverflow here.

Hope that is sufficient.