Use jackson serialization to avoid cycle dependencies