avaje / avaje-jex

Web routing for Jetty, Grizzly, JDK Http server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto-detection of JsonService additionally supports avaje-jsonb (so detects Jackson, then avaje-jsonb)

rbygrave opened this issue · comments

So when a JsonService is not explicitly set, if Jackson is present then that is used, if avaje-jsonb is present then it is used.

For people who don't know what avaje-jsonb is, TLDR - it's a source code generation approach to json binding (so light and fast). It comes with it's own underlying parser/generator but can also use jackson-core under the hood for people wanting to use that (heavier, slower but it's jackson core with a few more features and people love jackson etc).

Adjust the example-jetty app to use avaje-jsonb to marshall json.