How to ignore new fields for an object model with Firebase 1.0.2

后端 未结 4 743
隐瞒了意图╮
隐瞒了意图╮ 2020-12-15 18:50

I\'m using the last version at the moment of Firebase dependency, which is 1.0.2 and I\'m having problems into getting my pojos parsed correctly.

The thing is, at an

4条回答
  •  春和景丽
    2020-12-15 19:46

    For those who have moved over to Google's official version of Firebase (As of May 29, 2016), you can use @Exclude instead of @JsonIgnore or @JsonProperty. Here is the link to their document.

    Example:

    public class dataPacket{
        public String data;
        ...
        @Exclude
        public String getData(){return data;}
    }
    

提交回复
热议问题