New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom actions on annotations #269
Comments
Original comment by |
Original comment by
|
Original comment by |
Original comment by |
Original comment by |
Original comment by |
Original comment by Attachments: |
Exactly the same need here. Another reason: if I made a commit to my fork for a quick review on the idea. @inder123 will you please review this? |
Hi, i want to share my implementation of custom annotation support for gson, which is backwards compatible: I mostly wanted it for serializing some dates by specifying custom pattern in annotation like this: class Person {
@Expose
@SerializedName("birth_date")
@Parametrized
@CustomDateFormat("MMMM d, yyyy h:mm:ss a z")
private Date birthDate;
} Here is a draft implementation: |
Just wanted to explain my position: |
@amaksoft Why this is not yet accepted? Jeezus.
|
Anyway this can be added without hacking google gson library ? |
Original issue reported on code.google.com by
inder123
on 26 Nov 2010 at 7:00The text was updated successfully, but these errors were encountered: