If you had some schema describing what you can expect in the result,
you could use that to generate POJOs and code to automatically mashal / unmarshal these.
You can also wrap the mechanics of HTTP calls away and after done with all that what you
have is just a class representing a remote service with methods taking POJOS that wrap all
the mechanics of the remote call and return deserialized POJOs back.
A point to
keep in mind is that code generation should be our **last** resort - in a ideal world we
have just one client library that autodiscovers the rest via a single endpoint.
-- qmx