I’ve set up a project with the Axon 2.0 snapshot. I want my event store as well as my event bus to use a JSON serializer. Unfortunately, just passing a XStream implementation that generates JSON does not seem sufficient. Something like:
return new XStreamSerializer(new XStream(new JsonHierarchicalStreamDriver()));
Is there something I am missing or should I implement my own serializer, also extending the parent of XStreamSerializer ? Furthermore, is there any reason behind the format used ? I’m in a mixed environment with many technologies and, as such, cannot rely on the XStreamSerializer.