Gson: @Expose vs @SerializedName

后端 未结 4 1740
无人及你
无人及你 2020-12-08 02:00

With respect to Gson what is the difference between @Expose and @SerializedName(\"stringValue\")?

4条回答
  •  不知归路
    2020-12-08 02:31

    Moreover, @Expose comes with two boolean flags: deserialize and serialize, to allow skipping the field for one phase.

提交回复
热议问题