kamikat / moshi-jsonapi

JSON API v1.0 Specification in Moshi.
MIT License
156 stars 34 forks source link

Allow serialization/deserialization of private fields #7

Closed mreichelt closed 8 years ago

mreichelt commented 8 years ago

Currently the library enforces models to expose all their fields as public - custom fields as well as _id etc. This is considered bad practice in OOP. Both Moshi and GSON can use field.setAccessible(true) to implement this feature - so should moshi-jsonapi.