You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
same field class on different pojo may need different formate, using @JsonAdapter on field,i have to make a lot of TypeAdapter for different formating. i just want make my own annotation with TypeAdapterFactory resolve that.
Feature description
Alternatives / workarounds
The text was updated successfully, but these errors were encountered:
Adding a new parameter to the create method would be a breaking change, so this is probably not something we can do.
Could you please provide a short code example showing where you would need this and why the current Gson functionality does not work?
What might be possible though is to change how Gson's internal JsonAdapterAnnotationTypeAdapterFactory class creates instances of the type adapter. For example it could also in addition to a no-args constructor search for a constructor with Field parameter and use that one. This is only a basic idea though which just came into my mind. It would have to be discussed if this is really something which can and should be added.
Do you think that could solve your problem?
Problem solved by the feature
same field class on different pojo may need different formate, using @JsonAdapter on field,i have to make a lot of TypeAdapter for different formating. i just want make my own annotation with TypeAdapterFactory resolve that.
Feature description
Alternatives / workarounds
The text was updated successfully, but these errors were encountered: