Meaningless Drivel is fun!
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JSON Artifacts for Web Service" Watch "JSON Artifacts for Web Service" New topic

JSON Artifacts for Web Service

Kevin Fedric

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?
I agree. Here's the link:
subject: JSON Artifacts for Web Service
It's not a secret anymore!