Difference between Jettison and Jackson in JBoss
Asked Answered
I

2

15

What is the fundmental difference between using RestEasy JSON Provider Jettison (Badgerfish mapping) over Jackson?

What is is pros and cons of using the one over the other?

Ioannina answered 14/8, 2012 at 15:59 Comment(0)
S
12

Jettison is old.

Jackson is arguably the standard Java Library for processing JSON. Jackson is included in Glassfish.

Also some developers has warned me to stay off Badgerfish.

You can implement Jackson in Resteasy, see here.

Subcontinent answered 12/9, 2012 at 13:49 Comment(1)
What are the reasons to "stay off Badgerfish" ?Coolth
S
1

http://wiki.fasterxml.com/JacksonFAQ#Which_mappings_.28Badgerfish.2C_natural.2C_....29_does_Jackson_implement.3F

Which mappings (Badgerfish, natural, ...) does Jackson implement?

None. Jackson is "100% JSON" and does not try to imitate or emulate XML. Property name mapping is based on standard Java Bean naming convention (although can be overridden using annotations or custom naming strategy).

There are some support compatibility features -- such as ability to optionally use JAXB annotations -- but fundamentally Jackson is a pure JSON/Java data mapper and tries to minimize impedance between JSON and Java data models.

Seleucid answered 14/8, 2012 at 21:46 Comment(2)
Only explains that Jackson is its own pure JSON provider.Ioannina
That is why I added the disclaimer about my ignorance. :) sorry I couldn't helpSeleucid

© 2022 - 2024 — McMap. All rights reserved.