Simplify json response example and add an example of serializing a Java object
Merge pull request #3144 from benmccann/json-docs

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