bluelinelabs / LoganSquare

Screaming fast JSON parsing and serialization library for Android.
Apache License 2.0
3.21k stars 306 forks source link

Generate Jackson ObjectMapper Module #223

Open marc-christian-schulze opened 6 years ago

marc-christian-schulze commented 6 years ago

While LoganSquare allows us to generate de-/serialization code for selected entities it is sometimes necessary to provide a generic de-/serializer as fallback. I could think of a use case where you want to generate for some entities the de-/serialization code using LoganSquare and use the generated code transparently inside a regular Jackson ObjectMapper so that in case for some entity no code has been generated a fallback to the generic Jackson de-/serialization mechanism is done.
Therefore it wolud be nice to have an option in LoganSquare to also generate a Jackson Module that binds all generated de-/serializer from LoganSquare.