This tutorial tells you how to produce and consume JSON or XML in Java REST Services using Jersey with Jackson - one of the best JSON Providers for Java.
This tutorial tells you how to produce and consume JSON or XML your Java REST Services using Jersey with MOXY - the default JSON-Binding Provider in Jersey 2.x.