How can you get a list of unrecognized JSON fields in Gson like Jackson @JsonAnySetter?

Therefore, I currently use the Jackson parser and its libraries in my Android projects. However, looking at the method counted for jackson and gson, I was thinking about making the transition to gson. After looking at various methods / syntax, etc. I could not find the gson equivalent for Jackson @JsonAnySetter or @JsonAnyGetter.

Does this exist for gson? And if not, is there work around?

+4
source share
1 answer

, . Gson 2 , @Expose @SerializedName. , @JsonAnySetter @JsonAnyGetter, TypeAdapter, , Field, Map.

Jackson , API .

+4

All Articles