Added serialization with jackson.