Unmarshalling json by reversing the affect of @XmlElement renaming?
问题 I have a class defined as follows: public class Contact implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(name = "last-name", required = true) protected String lastName; @XmlElement(name = "first-name", required = true) protected String firstName; @XmlElement(required = true) protected String id; @XmlElement(name = "primary-phone") protected String primaryPhone; @XmlElement(name = "cellular-phone") protected String cellularPhone; } This class is being used