3 ms·
There's a very similar library from Google https://github.com/google/auto/blob/master/value/README.md https://github.com/google/auto/blob/master/value/README.md
by guelo 11y ago
There's a very similar library from Google https://github.com/google/auto/blob/master/value/README.md 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").
- elucash 11y agoMaybe 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 http://immutables.github.io/immutable.html#serialization [2] http://immutables.github.io/json.html http://immutables.github.io/json.html