Simplify json response example and add an example of serializing a Java object