JSON Formatting with Jersey, Jackson, & json.org/java
posted 3 years ago
Using Java 6, Tomcat 7, Jersey 1.15, Jackson 2.0.6 (from FasterXml maven repo), & www.json.org parser, I am trying to
pretty print the JSON String so it will look indented by the curl -X GET command line.
I created a simple web service which has the following architecture:
My POJOs (model classes):
Using a Utility Class, I decided to hard code the POJOs as follows: