Java – Jackson and jettison’s use in Jersey

The Jersey framework uses Jackson and jettison libraries for JSON unmarshalling / marshalling

For the same JSON generation / parsing function, will Jersey use these two different functions or both?

I just want to support JSON format In my first thought, it seems that I can delete any dependency. I think I can delete jettison because Jackson seems to choose JSON generation / parsing more naturally

Solution

Jersey will use one or the other, not both, for all JSON processing As far as I know, Jackson is recommended; Jettison supports older and is implemented before Jackson is available Jettison is still supported for compatibility reasons, but unless some code depends on the exact structure it generates (unlike direct mapping), there is little benefit in using it

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>