Serialization as json and xml working for answer domain object