Android Jackson Post

1

A Doubt: I'm trying to make a post, but the jackson library during the Post does not change the field name during serialization, how do I do this with Jackson? My class below:

@JsonIdentityReference
public class Envio {

    @JsonSerialize
    @JsonProperty("value[teste]")
    Long id;

    @JsonSerialize
    @JsonProperty("label[teste]")
    String name;

    public Envio(Long id, String name) {
        this.id = id;
        this.name = name;
    }
} 
    
asked by anonymous 11.09.2015 / 17:27

0 answers