-
Notifications
You must be signed in to change notification settings - Fork 115
Round trip with json io
John DeRegnaucourt edited this page Dec 21, 2013
·
6 revisions
json-io is commonly used to send Java Data Transfer Objects (DTO) to browser or mobile clients. The JsonWriter class adeptly converts the Java object graph to a JSON string.
But, what else do you need to get the JSON to the browser, and how to handle the JSON that is sent from the browser (or mobile) client?
On the receiving end, that is JsonCommandServlet. This project will be added to GitHub soon. This servlet is similar to Springs MVC, however, it is much easier to use. It supports a JSON return type as well as streaming for the response.