Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There's a very similar library from Google https://github.com/google/auto/blob/master/value/README.md

The one thing that tripped me up when I tried to use it is that you can't add other library annotations. For example, I couldn't change the json serialized field name using Gson's @SerializedName("custom_naming").



Maybe it's not what you looking for, but Immutables support binary [1] and JSON serialization [2] (Jackson or Gson) very well including field naming customization.

[1] http://immutables.github.io/immutable.html#serialization

[2] http://immutables.github.io/json.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: