json data storage with versioning

我的梦境 提交于 2019-12-06 09:36:56
Jon Peterson

There is no built-in Jackson support at the time of writing this (2.9.x), however, the Jackson Model Versioning Module adds versioning support which can be used to convert old versions of JSON models to the current version (and vice-versa) before being mapped to the POJO.

See my answer on Jackson 2 support for versioning for an example of how GSON's basic versioning functionality can be mapped to this module. See the module's GitHub page for examples of the full functionality.

Disclaimer: I am the author of this module. I have also written a Spring MVC ResponseBodyAdvise for using the module.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!