SerializedName annotation is not changing fields

前端 未结 0 532
耶瑟儿~
耶瑟儿~ 2021-02-19 14:42

I\'m trying to serialize an object using gson. I want its timestamp field to be like "@timestamp", but not "timestamp". So I used the annotation:



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题