-
Notifications
You must be signed in to change notification settings - Fork 252
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
Cannot marshal Ticket to JSON #573
Comments
@afm497 while the shadowed field is indeed less than ideal, I'm unsure why it wouldn't work. Following code is working at producing a json:
Please provide a fully self contained reproducer. |
I guess we differ on what "less than ideal" covers :) Just for the record, I use your library and find it very worthwhile, valuable and sincerely thank you for your efforts in creating and sharing. Quick snippet:
will result in So while yes, one could use a custom exclusion strategy, detect this kind of thing and work around it, it seems like either the field should be fixed to only declare once if they represent the same thing or transition to distinct fields. I'll add, now that I see the package name there, I believe this is part of your library , but if not and it's coming from elsewhere, let me know. |
I agree with you, I'm afraid I just don't have time to invest on the library currently. Code change itself looks trivial, but testing nothing is broken is not. I'm happy to accept a PR though :) |
Totally understand. I'll submit a PR for you here. Didn't want to do it out of the blue so glad we could connect here. Thanks very much for being open here. |
This issue/PR is stale because it has been opened 60 days with no activity. Remove stale label or comment or this will be closed in 7 days |
Had totally forgotten to create PR but got a notification that the issue was going stale so finally made the PR. Not sure if there is anything else I would need to do to ensure it no longer is treated as stale, but hopefully the activity addresses it. |
Describe the bug
Cannot, at least using both GSON and Jackson, marshal a Ticket to JSON. Multiple fields named priority. One in the Ticket itself, another in it's superclass, Request. The priority in Ticket is private, in Request it's protected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ability to marshal Ticket object to JSON for proper transmission.
Additional context
Not sure anymore is needed, but happy provide anything additional.
The text was updated successfully, but these errors were encountered: