File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes JSON Artifacts for Web Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JSON Artifacts for Web Service" Watch "JSON Artifacts for Web Service" New topic
Author

JSON Artifacts for Web Service

Kevin Fedric
Greenhorn

Joined: Jan 29, 2012
Posts: 4
I am invoking a public web service which gives me complex JSON object as response. One straight forward way to to get required data from response is to write a JSON parser manually.
I was wondering if there is any way I can generate artifacts that describes the response JSON structure, similar to how it can be done with SOAP? so that I can easily pass JSON string to artifact classes and call getters method to get data.

This question comes from my un-familiarity with handling JSON response objects (from web service) to get required data. So I would also appreciate any pointers on standard practices to do that when the JSON structure is complex. Are there any library that do this?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JSON Artifacts for Web Service
 
Similar Threads
What is Web Service?
web service not available
Publishing web service using Spring 3
Calling web services from Spring application
JSON