Closed GoogleCodeExporter closed 9 years ago
This is a valid feature request and I will look into supporting something like
this in the next Gson release.
I see this feature functioning such that you define your own annotations (like
above) and provide your own type adapter; however, the JsonSerializer or
JsonDeserializer will have enough context to pull off the field and class
annotations.
Original comment by joel.leitch@gmail.com
on 13 Apr 2011 at 7:30
Original comment by joel.leitch@gmail.com
on 13 Apr 2011 at 7:30
I came across feature request while trying to do this exact thing with the GSON
lib earier today.
I had a go at modding the GSON code to support this, its a little rough but it
may help someone out if they need to do this in the future, maybe even provide
a starting point to something like this being implemented in future releases.
See attached SVN patch file
Original comment by donalfen...@gmail.com
on 9 Feb 2014 at 11:09
Attachments:
Original issue reported on code.google.com by
mick8...@gmail.com
on 6 Apr 2011 at 1:08